/* ============================================ */
/* LEGEND HOUSE - AUTH PAGES v3.0 */
/* Ultra Premium Dark Theme */
/* Enhanced Animations & Better UI */
/* ============================================ */

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

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --primary: #f59e0b;
    --primary-light: #fbbf24;
    --accent: #ef4444;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: var(--black);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================ */
/* AUTH CONTAINER */
/* ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(239, 68, 68, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 0% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a15 0%, #0f0f1a 50%, #0a0a12 100%);
}

.auth-bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(245, 158, 11, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(239, 68, 68, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================ */
/* AUTH CARD */
/* ============================================ */
.auth-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    background: linear-gradient(145deg, rgba(25, 25, 35, 0.95) 0%, rgba(15, 15, 22, 0.98) 100%);
    border: 2px solid rgba(245, 158, 11, 0.15);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 60px rgba(245, 158, 11, 0.08),
        0 25px 100px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    animation: cardEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================ */
/* AUTH HEADER */
/* ============================================ */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    margin-bottom: 24px;
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.auth-logo::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary));
    border-radius: 20px;
    opacity: 0.3;
    transition: var(--transition);
    z-index: -1;
    filter: blur(8px);
}

.auth-logo:hover::before {
    opacity: 0.5;
}

.auth-logo svg {
    color: var(--primary);
    filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.5));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.auth-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f59e0b 50%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.auth-subtitle {
    font-size: 16px;
    color: #9ca3af;
    font-weight: 400;
}

/* ============================================ */
/* FORM ELEMENTS */
/* ============================================ */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.3px;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-icon {
    position: absolute;
    left: 16px;
    color: var(--gray-500);
    pointer-events: none;
    transition: var(--transition);
}

.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: rgba(20, 20, 30, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

/* ============================================ */
/* FORM INPUT STYLING */
/* ============================================ */

/* Standard focus state */
.form-input:focus {
    background: rgba(15, 15, 25, 0.9);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15), 0 0 20px rgba(245, 158, 11, 0.1);
}

/* Filled state - maintain clean look */
.form-input:not(:placeholder-shown) {
    border-color: var(--gray-600);
    background: rgba(20, 20, 30, 0.9);
}

/* Password field styling */
.form-input[type="password"]:not(:placeholder-shown) {
    color: var(--white);
    letter-spacing: 2px;
}

.form-input:focus + .password-toggle {
    color: var(--white);
}

.form-input-wrapper:focus-within .form-icon {
    color: var(--primary);
}

.form-hint {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 400;
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--white);
}

.password-strength {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    display: none;
}

/* ============================================ */
/* CHECKBOX */
/* ============================================ */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-700);
    border-radius: 6px;
    background: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--white);
    border-color: var(--white);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: var(--black);
    font-size: 14px;
    font-weight: 700;
}

.checkbox-text {
    font-size: 14px;
    color: var(--gray-400);
    font-weight: 400;
}

/* ============================================ */
/* FORM OPTIONS */
/* ============================================ */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.forgot-link {
    font-size: 14px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--gray-300);
}

/* ============================================ */
/* SUBMIT BUTTON */
/* ============================================ */
.btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: 0 4px 25px rgba(245, 158, 11, 0.4), 0 0 40px rgba(239, 68, 68, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.5), 0 0 60px rgba(239, 68, 68, 0.3);
    filter: brightness(1.1);
}

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

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.loading .btn-text {
    opacity: 0.5;
}

.btn-submit.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-text {
    font-weight: 700;
}

.btn-icon {
    display: flex;
    align-items: center;
}

/* ============================================ */
/* DIVIDER */
/* ============================================ */
.divider {
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-800);
}

.divider-text {
    padding: 0 16px;
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================ */
/* GOOGLE SIGN-IN BUTTON */
/* ============================================ */
.btn-google {
    width: 100%;
    padding: 14px 24px;
    background: var(--white);
    border: 2px solid var(--white);
    border-radius: 12px;
    color: var(--gray-700);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-google::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.05), rgba(234, 67, 53, 0.05));
    opacity: 0;
    transition: var(--transition);
}

.btn-google:hover::before {
    opacity: 1;
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.google-icon {
    flex-shrink: 0;
}

.btn-google .btn-text {
    font-weight: 600;
    color: var(--gray-800);
}

/* ============================================ */
/* ERROR MESSAGE */
/* ============================================ */
.error-message {
    padding: 14px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: errorShake 0.5s;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ============================================ */
/* AUTH FOOTER */
/* ============================================ */
.auth-footer {
    margin-top: 32px;
    text-align: center;
}

.auth-footer-text {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.auth-link:hover {
    border-bottom-color: var(--primary);
    color: var(--primary-light);
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-500);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
}

.back-home:hover {
    color: var(--white);
    gap: 10px;
}

/* ============================================ */
/* AUTH FEATURES */
/* ============================================ */
.auth-features {
    position: fixed;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 5;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    max-width: 300px;
    transition: var(--transition);
    animation: featureSlideIn 0.6s ease backwards;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.05);
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }

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

.feature-item:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateX(-4px);
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.15));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.feature-text h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 400;
}

/* ============================================ */
/* TOAST NOTIFICATION */
/* ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: var(--gray-900);
    border: 2px solid var(--gray-700);
    border-radius: 12px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
}

.toast.show {
    transform: translateX(0);
}

.toast.toast-success {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

.toast.toast-error {
    border-color: #ff6b6b;
    background: #ff6b6b;
    color: var(--white);
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */
@media (max-width: 1200px) {
    .auth-features {
        display: none;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 20px;
    }
    
    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
    }
    
    .auth-title {
        font-size: 28px;
    }
    
    .auth-subtitle {
        font-size: 14px;
    }
    
    .form-input {
        padding: 12px 14px 12px 44px;
        font-size: 14px;
    }
    
    .btn-submit {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
    }
    
    .auth-logo {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .auth-logo svg {
        width: 40px;
        height: 40px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================ */
/* ENHANCED ANIMATIONS v2.0 */
/* ============================================ */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
    }
}

@keyframes borderRotate {
    0% {
        border-image-source: linear-gradient(0deg, var(--white) 0%, transparent 50%, var(--white) 100%);
    }
    50% {
        border-image-source: linear-gradient(180deg, var(--white) 0%, transparent 50%, var(--white) 100%);
    }
    100% {
        border-image-source: linear-gradient(360deg, var(--white) 0%, transparent 50%, var(--white) 100%);
    }
}

@keyframes inputFocus {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    }
}

@keyframes successBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

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

/* Auth card enhanced glow effect */
.auth-card {
    animation: cardEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), glowPulse 4s ease-in-out infinite;
}

/* Form group stagger animation */
.form-group {
    animation: slideUp 0.4s ease backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }

/* Input focus enhanced animation */
.form-input:focus {
    animation: inputFocus 0.3s ease forwards;
}

/* ============================================ */
/* PASSWORD STRENGTH INDICATOR */
/* ============================================ */
.password-strength-bar {
    height: 4px;
    background: var(--gray-800);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0%;
}

.password-strength-fill.weak {
    width: 25%;
    background: #ef4444;
}

.password-strength-fill.fair {
    width: 50%;
    background: #f59e0b;
}

.password-strength-fill.good {
    width: 75%;
    background: #3b82f6;
}

.password-strength-fill.strong {
    width: 100%;
    background: #10b981;
}

.password-strength-text {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.password-strength-text.weak { color: #ef4444; }
.password-strength-text.fair { color: #f59e0b; }
.password-strength-text.good { color: #3b82f6; }
.password-strength-text.strong { color: #10b981; }

/* ============================================ */
/* LOADING STATE FOR BUTTONS */
/* ============================================ */
.btn-submit.loading {
    pointer-events: none;
    position: relative;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================ */
/* SUCCESS STATE */
/* ============================================ */
.success-message {
    padding: 14px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    color: #10b981;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: successBounce 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.success-icon {
    width: 20px;
    height: 20px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* ============================================ */
/* SOCIAL LOGIN BUTTONS */
/* ============================================ */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    width: 100%;
    padding: 14px 24px;
    border: 2px solid var(--gray-700);
    border-radius: 12px;
    background: transparent;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
}

.btn-social:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-social svg,
.btn-social img {
    width: 20px;
    height: 20px;
}

/* ============================================ */
/* TERMS & CONDITIONS LINK */
/* ============================================ */
.terms-text {
    font-size: 12px;
    color: var(--gray-500);
    text-align: center;
    margin-top: 16px;
    line-height: 1.6;
}

.terms-text a {
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.terms-text a:hover {
    border-bottom-color: var(--white);
}

/* ============================================ */
/* TWO-FACTOR AUTH INPUT */
/* ============================================ */
.otp-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 24px 0;
}

.otp-input {
    width: 48px;
    height: 56px;
    background: var(--gray-900);
    border: 2px solid var(--gray-800);
    border-radius: 12px;
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    font-family: var(--font-mono, monospace);
    transition: var(--transition);
}

.otp-input:focus {
    outline: none;
    border-color: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

/* ============================================ */
/* FLOATING LABELS */
/* ============================================ */
.floating-label-group {
    position: relative;
    margin-bottom: 24px;
}

.floating-input {
    width: 100%;
    padding: 20px 16px 8px 16px;
    background: var(--gray-900);
    border: 2px solid var(--gray-800);
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.floating-input:focus {
    outline: none;
    border-color: var(--white);
}

.floating-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    font-size: 16px;
    pointer-events: none;
    transition: var(--transition);
}

.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    top: 12px;
    font-size: 11px;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================ */
/* CAPTCHA STYLING */
/* ============================================ */
.captcha-container {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.captcha-container > div {
    border-radius: 8px;
    overflow: hidden;
}

/* ============================================ */
/* ENHANCED ACCESSIBILITY */
/* ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .auth-card {
        animation: none;
    }
    
    .auth-logo {
        animation: none;
    }
}

@media (prefers-contrast: high) {
    .form-input {
        border-width: 3px;
    }
    
    .btn-submit {
        border: 2px solid var(--black);
    }
    
    .auth-card {
        border-width: 3px;
    }
}

/* Focus visible for keyboard navigation */
.form-input:focus-visible,
.btn-submit:focus-visible,
.btn-google:focus-visible,
.auth-link:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* ============================================ */
/* ANIMATED BACKGROUND ELEMENTS */
/* ============================================ */
.auth-bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.03;
    animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb:nth-child(1) {
    width: 600px;
    height: 600px;
    background: var(--white);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.bg-orb:nth-child(2) {
    width: 400px;
    height: 400px;
    background: var(--white);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.bg-orb:nth-child(3) {
    width: 300px;
    height: 300px;
    background: var(--white);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 10px) scale(1.05);
    }
}

/* ============================================ */
/* ENHANCED MOBILE EXPERIENCE */
/* ============================================ */
@media (max-width: 480px) {
    .otp-container {
        gap: 6px;
    }
    
    .otp-input {
        width: 40px;
        height: 48px;
        font-size: 20px;
    }
    
    .social-buttons {
        gap: 10px;
    }
    
    .btn-social {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ============================================ */
/* DESKTOP / LAPTOP ENHANCEMENTS (768px+) */
/* ============================================ */
@media (min-width: 768px) {
    .auth-container {
        padding: 60px 40px;
        background: 
            radial-gradient(ellipse 100% 80% at 50% -10%, rgba(245, 158, 11, 0.18), transparent),
            radial-gradient(ellipse 80% 60% at 100% 100%, rgba(239, 68, 68, 0.12), transparent),
            radial-gradient(ellipse 60% 50% at 0% 50%, rgba(168, 85, 247, 0.1), transparent),
            linear-gradient(180deg, #0a0a15 0%, #0f0f1a 50%, #0a0a12 100%);
    }
    
    .auth-bg-pattern {
        opacity: 0.6;
    }
    
    .auth-card {
        max-width: 520px;
        padding: 56px 64px;
        border-radius: 28px;
        border: 2px solid rgba(245, 158, 11, 0.2);
        box-shadow: 
            0 0 0 1px rgba(255, 255, 255, 0.08),
            0 0 80px rgba(245, 158, 11, 0.12),
            0 40px 120px rgba(0, 0, 0, 0.9),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    
    .auth-logo {
        width: 88px;
        height: 88px;
        border-radius: 24px;
        margin-bottom: 28px;
        border: 2px solid rgba(245, 158, 11, 0.4);
        box-shadow: 0 0 40px rgba(245, 158, 11, 0.2);
    }
    
    .auth-logo svg {
        width: 52px;
        height: 52px;
    }
    
    .auth-title {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .auth-subtitle {
        font-size: 17px;
    }
    
    .auth-header {
        margin-bottom: 48px;
    }
    
    .auth-form {
        gap: 28px;
    }
    
    .form-label {
        font-size: 15px;
        margin-bottom: 2px;
        color: #e5e7eb;
    }
    
    .form-input {
        padding: 16px 18px 16px 52px;
        font-size: 16px;
        border-radius: 14px;
        border: 2px solid rgba(245, 158, 11, 0.15);
    }
    
    .form-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2), 0 0 30px rgba(245, 158, 11, 0.15);
    }
    
    .form-icon {
        left: 18px;
        width: 22px;
        height: 22px;
        color: #f59e0b;
        opacity: 0.7;
    }
    
    .password-toggle {
        right: 18px;
    }
    
    .btn-submit {
        padding: 18px 24px;
        font-size: 16px;
        border-radius: 14px;
        margin-top: 8px;
        box-shadow: 0 6px 30px rgba(245, 158, 11, 0.45), 0 0 50px rgba(239, 68, 68, 0.25);
    }
    
    .btn-google,
    .btn-social {
        padding: 16px 28px;
        font-size: 16px;
        border-radius: 14px;
    }
    
    .auth-footer {
        margin-top: 36px;
        padding-top: 28px;
    }
    
    .auth-footer p {
        font-size: 15px;
    }
    
    .auth-link {
        font-size: 15px;
    }
    
    .divider {
        margin: 28px 0;
    }
    
    .divider-text {
        font-size: 13px;
        padding: 0 20px;
    }
    
    .checkbox-label {
        font-size: 14px;
    }
    
    .checkbox-custom {
        width: 22px;
        height: 22px;
        border-radius: 7px;
        border: 2px solid rgba(245, 158, 11, 0.3);
    }
    
    .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
        background: linear-gradient(135deg, #f59e0b, #ef4444);
        border-color: #f59e0b;
    }
    
    .form-hint {
        font-size: 13px;
    }
    
    .otp-input {
        width: 56px;
        height: 64px;
        font-size: 28px;
        border-radius: 14px;
    }
    
    .otp-container {
        gap: 12px;
    }
}

/* ============================================ */
/* LARGE DESKTOP (1200px+) */
/* ============================================ */
@media (min-width: 1200px) {
    .auth-container {
        padding: 80px 60px;
        background: 
            radial-gradient(ellipse 120% 100% at 50% -20%, rgba(245, 158, 11, 0.2), transparent),
            radial-gradient(ellipse 100% 80% at 100% 100%, rgba(239, 68, 68, 0.15), transparent),
            radial-gradient(ellipse 80% 60% at 0% 50%, rgba(168, 85, 247, 0.12), transparent),
            linear-gradient(180deg, #0a0a15 0%, #0f0f1a 50%, #0a0a12 100%);
    }
    
    .auth-bg-pattern {
        opacity: 0.7;
    }
    
    .auth-card {
        max-width: 560px;
        padding: 64px 72px;
        border-radius: 32px;
        border: 2px solid rgba(245, 158, 11, 0.25);
        box-shadow: 
            0 0 0 1px rgba(255, 255, 255, 0.1),
            0 0 100px rgba(245, 158, 11, 0.15),
            0 50px 150px rgba(0, 0, 0, 0.9),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .auth-logo {
        width: 96px;
        height: 96px;
        margin-bottom: 32px;
        border: 2px solid rgba(245, 158, 11, 0.5);
        box-shadow: 0 0 50px rgba(245, 158, 11, 0.25);
    }
    
    .auth-logo svg {
        width: 56px;
        height: 56px;
    }
    
    .auth-title {
        font-size: 40px;
    }
    
    .auth-subtitle {
        font-size: 18px;
    }
    
    .auth-header {
        margin-bottom: 56px;
    }
    
    .form-input {
        padding: 18px 20px 18px 56px;
        font-size: 17px;
    }
    
    .btn-submit {
        padding: 20px 28px;
        font-size: 17px;
        box-shadow: 0 8px 40px rgba(245, 158, 11, 0.5), 0 0 60px rgba(239, 68, 68, 0.3);
    }
    
    .btn-google,
    .btn-social {
        padding: 18px 32px;
        font-size: 17px;
    }
}

/* ============================================ */
/* EXTRA WIDE SCREENS (1600px+) */
/* ============================================ */
@media (min-width: 1600px) {
    .auth-container {
        background: 
            radial-gradient(ellipse 80% 60% at 30% 10%, rgba(245, 158, 11, 0.18), transparent),
            radial-gradient(ellipse 60% 50% at 80% 90%, rgba(239, 68, 68, 0.14), transparent),
            radial-gradient(ellipse 50% 40% at 10% 60%, rgba(168, 85, 247, 0.1), transparent),
            linear-gradient(180deg, #0a0a15 0%, #0f0f1a 50%, #0a0a12 100%);
    }
    
    .auth-bg-pattern {
        opacity: 0.8;
    }
    
    .auth-card {
        max-width: 600px;
        padding: 72px 80px;
        border: 2px solid rgba(245, 158, 11, 0.3);
        box-shadow: 
            0 0 0 1px rgba(255, 255, 255, 0.12),
            0 0 120px rgba(245, 158, 11, 0.18),
            0 60px 180px rgba(0, 0, 0, 0.9);
    }
    
    .auth-title {
        font-size: 44px;
    }
    
    .auth-logo {
        width: 104px;
        height: 104px;
        box-shadow: 0 0 60px rgba(245, 158, 11, 0.3);
    }
    
    .btn-submit {
        box-shadow: 0 10px 50px rgba(245, 158, 11, 0.55), 0 0 80px rgba(239, 68, 68, 0.35);
    }
}
