/* ==========================================
   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 - Floating Label Style */
.form-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input-group .input {
    width: 100%;
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 1rem !important;
    background: rgba(10, 10, 10, 0.6);
    padding: 1rem;
    font-size: 1rem;
    color: #ffffff;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.form-input-group .user-label {
    position: absolute;
    left: 15px;
    top: 50%;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transform: translateY(-50%);
    transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-input-group .user-label i {
    color: rgba(212, 175, 55, 0.6);
    font-size: 0.85rem;
}

.form-input-group .input:focus,
.form-input-group .input:valid {
    outline: none;
    border: 1.5px solid #d4af37;
    background: rgba(10, 10, 10, 0.8);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input-group .input:focus ~ .user-label,
.form-input-group .input:valid ~ .user-label {
    transform: translateY(-2.2rem) scale(0.85);
    background-color: rgba(10, 10, 10, 0.95);
    padding: 0 0.4em;
    color: #d4af37;
    font-weight: 500;
}

.form-input-group .input:focus ~ .user-label i,
.form-input-group .input:valid ~ .user-label i {
    color: #d4af37;
}

/* Keep old styles for compatibility */
.auth-form .form-group {
    margin-bottom: 1.25rem;
}

/* Form Labels - Hidden (using floating labels now) */
.form-label {
    display: none;
}

/* Old Auth Input - Hidden (using new input class) */
.auth-input {
    display: none;
}

/* Password Toggle Button */
.form-input-group .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.form-input-group .password-toggle:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.form-input-group .password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

.form-input-group .password-toggle i {
    font-size: 1rem;
    transition: all 0.3s;
}

/* Adjust input padding when toggle button exists */
.form-input-group:has(.password-toggle) .input {
    padding-right: 3rem;
}

/* 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: #d4af37;
}

.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 - SVG Animated */
.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-wrapper .terms-label {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.checkbox-wrapper .terms-label .label-text {
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.checkbox-wrapper .checkbox-svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.checkbox-wrapper .checkbox-box {
    fill: rgba(255, 255, 255, 0.04);
    stroke: #d4af37;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    transition: stroke-dashoffset 0.4s ease-in;
}

.checkbox-wrapper .checkbox-tick {
    stroke: #d4af37;
    stroke-dasharray: 172;
    stroke-dashoffset: 172;
    transition: stroke-dashoffset 0.4s ease-in;
}

.checkbox-wrapper input[type="checkbox"]:checked + .terms-label .checkbox-box,
.checkbox-wrapper input[type="checkbox"]:checked + .terms-label .checkbox-tick {
    stroke-dashoffset: 0;
}

.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,
.flash-messages-container {
    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,
.flash-message.flash-danger {
    border-left: 3px solid #ef5350;
}

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

.flash-message.flash-warning {
    border-left: 3px solid #ffa726;
}

.flash-message.flash-warning i {
    color: #ffa726;
    font-size: 1.25rem;
}

.flash-message.flash-info {
    border-left: 3px solid #42a5f5;
}

.flash-message.flash-info i {
    color: #42a5f5;
    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;
    }
}
