/**
 * Modern 3D Login Page Stylesheet
 * 
 * Styling for the admin login page with 3D glassmorphism.
 * Features blue and purple gradient theme.
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #00d4ff;
    --primary-purple: #7c3aed;
    --dark-bg: #0a0e27;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --text-color: #ffffff;
    --text-secondary: #a0aec0;
    --border-color: rgba(0, 212, 255, 0.15);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a0a3e 50%, #0a0e27 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 8px 32px rgba(0, 212, 255, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
    border-radius: 12px;
    pointer-events: none;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.login-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.login-header h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    font-size: 1rem;
}

.form-group input {
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(10, 14, 39, 0.5);
    color: var(--text-color);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 
        0 0 15px rgba(0, 212, 255, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    background: rgba(10, 14, 39, 0.7);
}

.form-group input::placeholder {
    color: #7f8c8d;
}

.btn-login {
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.3);
    display: none;
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 1;
}

.error-message.show {
    display: block;
}

.success-message {
    color: var(--primary-blue);
    text-align: center;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: none;
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 1;
}

.success-message.show {
    display: block;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.login-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.login-footer a:hover {
    color: var(--primary-purple);
    transform: translateX(5px);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-box {
        padding: 2rem 1.5rem;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    .login-icon {
        font-size: 2.5rem;
    }

    .form-group input {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    .btn-login {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
}

/**
 * File Documentation:
 * Modern 3D login page stylesheet with blue and purple theme.
 * Features glassmorphism design and smooth transitions.
 * Fully responsive for all device sizes.
 */
