/* ================= AUTH PAGES ================= */
.auth-wrap {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, .08), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, .08), transparent 40%),
        #f8fafc;
    position: relative;
    overflow: hidden;
}

.auth-wrap::before {
    content: '';
    position: absolute;
    top: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, .15), transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}
.auth-wrap::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, .15), transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 42px;
    max-width: 460px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .08), 0 4px 12px rgba(15, 23, 42, .04);
    border: 1px solid rgba(0, 0, 0, .04);
    position: relative;
    z-index: 1;
    animation: slideUp .6s cubic-bezier(.34, 1.56, .64, 1);
}

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    box-shadow: 0 12px 28px rgba(99, 102, 241, .35);
    animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 12px 28px rgba(99, 102, 241, .35); }
    50% { box-shadow: 0 16px 40px rgba(99, 102, 241, .5); }
}

.auth-title {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -.5px;
}
.auth-subtitle {
    text-align: center;
    font-size: 13.5px;
    color: #94a3b8;
    margin-bottom: 28px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.form-group .input-wrap {
    position: relative;
}
.form-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    opacity: .5;
    pointer-events: none;
    transition: opacity .2s;
}
.form-group input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #f8fafc;
    color: #0f172a;
    transition: all .25s;
    outline: none;
}
.form-group input:focus {
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, .1);
}
.form-group input:focus + .input-icon,
.form-group input:focus ~ .input-icon {
    opacity: 1;
}
.form-group input::placeholder { color: #94a3b8; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* PASSWORD TOGGLE */
.pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    opacity: .5;
    padding: 6px;
    transition: opacity .2s;
}
.pwd-toggle:hover { opacity: 1; }

/* BUTTONS */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    margin-top: 8px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, .3);
    transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, .45);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    transition: left .6s;
}
.btn-primary:hover::before { left: 100%; }

/* ALERTS */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: slideDown .4s cubic-bezier(.34, 1.56, .64, 1);
}
.alert.success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.alert.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert.info { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* LINKS */
.auth-links {
    text-align: center;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #f1f5f9;
    font-size: 13.5px;
    color: #64748b;
}
.auth-links a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 700;
    transition: color .2s;
}
.auth-links a:hover { color: #4f46e5; text-decoration: underline; }

/* DIVIDER */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* SOCIAL ROW (optional) */
.social-row {
    display: flex;
    gap: 10px;
}
.social-btn {
    flex: 1;
    padding: 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    font-family: inherit;
    transition: all .25s;
}
.social-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .auth-card { padding: 28px 22px; border-radius: 20px; }
    .auth-title { font-size: 20px; }
    .form-row { grid-template-columns: 1fr; }
}