/* ═══════════════════════════════════════
   AUTH PAGES — Login, Register, Forgot
   ═══════════════════════════════════════ */

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #050714;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── Container ─── */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
}

/* ─── Card ─── */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(10, 14, 39, 0.85);
    border: 1px solid rgba(123, 47, 255, 0.15);
    border-radius: 20px;
    padding: 48px 40px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 0 60px rgba(123, 47, 255, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ─── Logo ─── */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 32px;
    justify-content: center;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(123, 47, 255, 0.5));
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #7B2FFF, #00F0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Titles ─── */
.auth-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: #6E7299;
    font-size: 14px;
    margin-bottom: 32px;
}

/* ─── Form ─── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #B4B7D4;
    letter-spacing: 0.3px;
}

.form-group label .required {
    color: #7B2FFF;
}

.form-group input {
    background: rgba(5, 7, 20, 0.7);
    border: 1px solid rgba(123, 47, 255, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder {
    color: #3D4166;
}

.form-group input:focus {
    border-color: #7B2FFF;
    box-shadow: 0 0 0 3px rgba(123, 47, 255, 0.15), 0 0 20px rgba(123, 47, 255, 0.1);
}

.forgot-link {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 12px;
    color: #6E7299;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #00F0FF;
}

/* ─── Button ─── */
.btn-primary {
    background: linear-gradient(135deg, #7B2FFF, #5B1FCC);
    border: none;
    border-radius: 10px;
    padding: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(123, 47, 255, 0.4), 0 8px 24px rgba(123, 47, 255, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ─── Divider ─── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(123, 47, 255, 0.15);
}

.auth-divider span {
    font-size: 12px;
    color: #3D4166;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── Switch ─── */
.auth-switch {
    text-align: center;
    font-size: 14px;
    color: #6E7299;
}

.auth-switch a {
    color: #7B2FFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-switch a:hover {
    color: #00F0FF;
}

/* ─── Error / Success ─── */
.auth-error {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #ff6b6b;
    font-size: 14px;
    text-align: center;
}

.auth-success {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #00F0FF;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
}

/* ─── Background decoration ─── */
.auth-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: #7B2FFF;
    top: -200px;
    right: -100px;
    animation: float1 12s ease-in-out infinite alternate;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: #00F0FF;
    bottom: -150px;
    left: -100px;
    animation: float2 10s ease-in-out infinite alternate;
}

@keyframes float1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-60px, 40px); }
}

@keyframes float2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, -30px); }
}

/* ─── Mobile ─── */
@media (max-width: 480px) {
    .auth-card {
        padding: 36px 24px;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 22px;
    }
}
