/* ============================================
   BAZM-E-BME - Authentication Pages Styles
   ============================================ */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gray-50);
    color: var(--navy);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Animation */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-navy);
    z-index: -2;
    overflow: hidden;
}

.auth-background::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.auth-background::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Form Container */
.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-form {
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

/* Logo Section */
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
}

.auth-logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.auth-logo h1 span {
    color: var(--gold);
}

.auth-logo p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Form Header */
.auth-form h2,
.auth-form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--navy);
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* Messages */
.messages {
    list-style: none;
    margin-bottom: 24px;
}

.messages li {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.messages .success {
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid var(--teal);
    color: var(--teal-dark);
}

.messages .error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #dc2626;
}

.messages .info {
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold-dark);
}

/* Form Fields */
.input-field {
    margin-bottom: 24px;
}

.auth-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form textarea,
.auth-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--navy);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
    color: var(--gray-400);
}

/* Field Errors */
.field-error,
.error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
}

/* Buttons */
.auth-button,
.login-button,
.sign-up-button {
    width: 100%;
    padding: 14px 28px;
    background: var(--gradient-gold);
    color: var(--navy);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: var(--shadow-gold);
    margin-top: 8px;
}

.auth-button:hover,
.login-button:hover,
.sign-up-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.4);
}

/* Secondary Button */
.auth-button-secondary {
    width: 100%;
    padding: 14px 28px;
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-top: 12px;
}

.auth-button-secondary:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

/* Social Login */
.auth-social {
    margin-top: 32px;
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    background: var(--white);
    padding: 0 16px;
    color: var(--gray-500);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.social-login-btn {
    width: 100%;
    padding: 14px 28px;
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
}

.social-login-btn:hover {
    border-color: var(--navy);
    background: var(--gray-50);
}

.social-login-btn i {
    font-size: 1.2rem;
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 24px;
}

.auth-links p {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.auth-links a {
    color: var(--gold-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--navy);
}

/* Success/Info Messages */
.email-reset-message,
.email-reset-instructions {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: center;
}

.email-reset-message {
    font-size: 1.05rem;
    margin-bottom: 24px;
}

/* Checkbox */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--gold);
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.checkbox-field label {
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
}

/* File Upload */
input[type="file"] {
    padding: 10px;
    font-size: 0.9rem;
}

/* Textarea */
textarea {
    min-height: 120px;
    resize: vertical;
}

/* Help Text */
.form-text {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 6px;
    display: block;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-container {
        padding: 16px;
    }

    .auth-form {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .auth-form h2,
    .auth-form h3 {
        font-size: 1.5rem;
    }

    .auth-logo h1 {
        font-size: 1.5rem;
    }

    .auth-logo-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
}

/* Hide default django labels */
.auth-form label[for] {
    display: none;
}

/* Show custom labels */
.auth-label {
    display: block !important;
}