/* Auth Page Styles - Futuristic Design */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Animated Background */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
}

.bg-gradient-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.bg-gradient-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--secondary) 100%);
    bottom: -200px;
    left: -200px;
    animation: float 10s ease-in-out infinite reverse;
}

.bg-orbs {
    position: absolute;
    inset: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite;
}

.orb-1 {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.orb-2 {
    width: 6px;
    height: 6px;
    top: 60%;
    right: 25%;
    animation-delay: 1s;
    background: var(--secondary);
}

.orb-3 {
    width: 10px;
    height: 10px;
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
    background: var(--purple);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Container */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo */
.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease-out;
}

.auth-logo-img {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 0 12px var(--cyan-glow)) drop-shadow(0 0 24px var(--purple-glow));
}

.auth-logo .logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.auth-logo .logo-icon svg {
    width: 24px;
    height: 24px;
}

.auth-logo .logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
}

.auth-logo .logo-text span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Auth Card */
.auth-card {
    width: 100%;
    background: rgba(10, 15, 26, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 48px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: fadeInUp 0.6s ease-out;
}

.auth-card.hidden {
    display: none;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-icon {
    width: 64px;
    height: 64px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
}

.auth-icon svg {
    width: 28px;
    height: 28px;
}

.auth-header h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group label svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.form-group input {
    background: var(--dark-3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 214, 143, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    width: 100%;
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.forgot-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--primary);
    align-self: flex-end;
    transition: opacity 0.3s;
}

.forgot-link:hover {
    opacity: 0.8;
}

.forgot-link svg {
    width: 14px;
    height: 14px;
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    margin-top: 2px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--primary);
    transition: opacity 0.3s;
}

.form-checkbox a:hover {
    opacity: 0.8;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 32px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.auth-divider span {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Social Buttons */
.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.btn-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-social:hover {
    border-color: var(--primary);
    background: rgba(0, 214, 143, 0.1);
    transform: translateY(-2px);
}

.btn-social svg {
    width: 24px;
    height: 24px;
}

.btn-google:hover {
    border-color: #4285F4;
    background: rgba(66, 133, 244, 0.1);
}

.btn-apple:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-uber:hover {
    border-color: #000;
    background: rgba(255, 255, 255, 0.05);
}

.btn-social.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-switch a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    transition: opacity 0.3s;
}

.auth-switch a:hover {
    opacity: 0.8;
}

.auth-switch svg {
    width: 16px;
    height: 16px;
}

/* Back Home Link */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.back-home:hover {
    color: var(--primary);
}

.back-home svg {
    width: 18px;
    height: 18px;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {

    /* Social buttons as round icons on tablet/mobile */
    .social-buttons {
        display: flex;
        justify-content: center;
        gap: 16px;
    }

    .btn-social {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 50%;
        flex-direction: row;
        justify-content: center;
    }

    .btn-social span {
        display: none;
    }

    .btn-social svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .auth-body {
        padding: 24px 16px;
    }

    .auth-card {
        padding: 32px 24px;
    }

    /* Smaller round social buttons on mobile */
    .btn-social {
        width: 48px;
        height: 48px;
    }

    .btn-social svg {
        width: 20px;
        height: 20px;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .auth-divider {
        margin: 24px 0;
    }
}