/* auth.css - Redesigned to match Homepage Hero */

/* FIX: Force FontAwesome for Icons */
.fas,
.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.fab,
.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

.far,
.fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

/* 1. Background & Layout (Matches Hero Section) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--bg-black);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Space for Navbar */
}

/* Background Animation Layers */
.ring-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glowing-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 80px rgba(124, 58, 237, 0.05);
    /* Purple Glow */
}

.ring-1 {
    width: 600px;
    height: 600px;
    animation: spin 20s linear infinite;
    border-color: rgba(124, 58, 237, 0.1);
}

.ring-2 {
    width: 800px;
    height: 800px;
    animation: spin 30s linear infinite reverse;
    border-color: rgba(0, 217, 255, 0.05);
}

.ring-3 {
    width: 1100px;
    height: 1100px;
    animation: spin 40s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 2. Glass Card */
.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(15, 15, 22, 0.6);
    /* Transparent Dark */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

/* 3. Typography (Hero Style) */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    display: block;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 5px;
    /* RING MATCH: Cyan to Purple */
    background: linear-gradient(135deg, #00d9ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.auth-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

.auth-subtitle::before,
.auth-subtitle::after {
    content: '//';
    color: #00d9ff;
    /* Cyan Match */
    margin: 0 5px;
}

/* 4. Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Minimal Border */
    border-radius: 8px;
    /* Sharper corners like newsletter */
    padding: 14px 16px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #00d9ff;
    /* Cyan Focus */
    background: rgba(0, 217, 255, 0.02);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.05);
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.auth-input:focus+.input-icon {
    color: #00d9ff;
}

/* 5. Buttons */
.auth-btn {
    width: 100%;
    /* RING MATCH: Cyan to Purple */
    background: linear-gradient(135deg, #00d9ff, #7c3aed);
    color: #fff;
    /* White Text for better contrast on dark purple */
    border: none;
    border-radius: 8px;
    /* Sharper corners */
    padding: 16px;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(0, 217, 255, 0.4);
    /* Cyan Glow */
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--accent-secondary);
}

.auth-link strong {
    color: var(--text-white);
    font-weight: 600;
}

/* Password Strength */
.password-strength-container {
    margin-top: -15px;
    margin-bottom: 25px;
    padding: 0 2px;
}

.strength-bars {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.strength-bar {
    height: 2px;
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.strength-text {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    text-align: right;
}

.strength-weak .strength-bar:nth-child(1) {
    background: #ff4d4d;
}

.strength-medium .strength-bar:nth-child(1),
.strength-medium .strength-bar:nth-child(2) {
    background: #ffd700;
}

.strength-strong .strength-bar:nth-child(1),
.strength-strong .strength-bar:nth-child(2),
.strength-strong .strength-bar:nth-child(3) {
    background: var(--accent-secondary);
}

.strength-secure .strength-bar {
    background: #00ff9d;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
        background: rgba(15, 15, 22, 0.8);
    }

    .auth-wrapper {
        padding: 15px;
        padding-top: 110px;
        /* More space from top */
        align-items: flex-start;
        /* Move card up */
    }
}