/* ==========================================
   FameThink Auth Page - Premium Design
   ========================================== */

/* Navbar Styles */
.navbar {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar-brand:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.navbar-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
    transition: all 0.3s;
}

.navbar-brand:hover .navbar-logo {
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.5));
}

.navbar-menu {
    display: flex;
    gap: 1rem;
}

.nav-link {
    background: transparent;
    border: 1.5px solid rgba(212, 175, 55, 0.4);
    color: rgba(212, 175, 55, 0.9);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #000000;
    border-color: #d4af37;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.nav-link i {
    font-size: 1rem;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Auth Wrapper */
.auth-wrapper {
    max-width: 450px;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.5) 50%, 
        transparent 100%);
    opacity: 0.8;
}

/* Auth Content */
.auth-right {
    padding: 3rem 2.5rem;
}

/* Logo Section */
.logo-container {
    height: 40px;
    width: 40px;
    overflow: hidden;
}

.brand-logo {
    height: 90px;
    margin-left: -18px;
    margin-top: -20px;
    width: auto;
    margin-right: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.auth-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Remove old branding styles */
.auth-left {
    display: none;
}

/* Form Header */
.auth-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-form-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 400;
}

/* Form Groups */
.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.3px;
}

.form-label i {
    color: #d4af37;
    margin-right: 0.4rem;
    font-size: 0.85rem;
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.auth-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
    outline: none;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: rgba(212, 175, 55, 0.8);
}

.password-toggle i {
    font-size: 1rem;
}

/* Password Strength */
.password-strength {
    margin-top: 0.6rem;
}

.strength-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background-color 0.3s;
    background: #ef5350;
    border-radius: 10px;
}

.strength-fill.weak {
    width: 33%;
    background: #ef5350;
}

.strength-fill.medium {
    width: 66%;
    background: #ffa726;
}

.strength-fill.strong {
    width: 100%;
    background: #66bb6a;
}

.strength-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.4rem;
    display: block;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-checkbox input:checked ~ .checkmark {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.6);
}

.custom-checkbox input:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #d4af37;
    font-size: 0.65rem;
}

.checkbox-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.forgot-link {
    color: rgba(212, 175, 55, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: rgba(212, 175, 55, 1);
}

.terms-link {
    color: rgba(212, 175, 55, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.terms-link:hover {
    color: rgba(212, 175, 55, 1);
}

/* Submit Button */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #000000;
    border: none;
    padding: 0.95rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
    letter-spacing: 0.3px;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
    background: linear-gradient(135deg, #e0bb44 0%, #f9dd4f 100%);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    font-size: 1rem;
}

/* Form Divider */
.form-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.form-divider span {
    padding: 0 0.875rem;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.875rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

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

.btn-google:hover {
    border-color: rgba(66, 133, 244, 0.3);
    background: rgba(66, 133, 244, 0.05);
}

.btn-facebook:hover {
    border-color: rgba(24, 119, 242, 0.3);
    background: rgba(24, 119, 242, 0.05);
}

/* Form Switch Text */
.form-switch-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

.switch-link {
    color: rgba(212, 175, 55, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.switch-link:hover {
    color: rgba(212, 175, 55, 1);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 350px;
}

.flash-message {
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.4s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-message.flash-success {
    border-left: 3px solid #66bb6a;
}

.flash-message.flash-success i {
    color: #66bb6a;
    font-size: 1.25rem;
}

.flash-message.flash-error {
    border-left: 3px solid #ef5350;
}

.flash-message.flash-error i {
    color: #ef5350;
    font-size: 1.25rem;
}

.flash-message span {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.flash-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s;
}

.flash-close:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Hide/Show Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-wrapper {
        max-width: 100%;
    }

    .auth-right {
        padding: 2.5rem 2rem;
    }

    .auth-logo-img {
        width: 150px;
    }

    .auth-form-title {
        font-size: 1.6rem;
    }

    .flash-messages {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.875rem;
    }
}

@media (max-width: 480px) {
    .auth-right {
        padding: 2rem 1.5rem;
    }

    .auth-logo-img {
        width: 130px;
    }

    .auth-form-title {
        font-size: 1.4rem;
    }

    .auth-input {
        padding: 0.8rem 0.9rem;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
    }

    .btn-social {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}
