/* =========================================================
   SMS — Auth Pages CSS (Login, Forgot, Reset)
   ========================================================= */

/* ── Auth Layout ──────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated background orbs */
.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}
.auth-page::before {
    width: 400px; height: 400px;
    background: rgba(111,176,172,0.15); /* primary teal */
    top: -100px; left: -100px;
}
.auth-page::after {
    width: 350px; height: 350px;
    background: rgba(134,173,206,0.15); /* secondary blue */
    bottom: -80px; right: -80px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(20px, -20px) scale(1.05); }
    66%       { transform: translate(-15px, 10px) scale(0.98); }
}

/* ── Auth Card ────────────────────────────────────────────── */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.4s ease;
    position: relative;
    z-index: 1;
}

/* ── Auth Header ──────────────────────────────────────────── */
.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo-icon {
    width: 56px; height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 14px;
    box-shadow: var(--shadow-glow), 0 0 40px rgba(99,102,241,0.4);
}

.auth-logo h1 {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.auth-logo p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ── Auth Form ────────────────────────────────────────────── */
.auth-form h2 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}
.auth-form > p {
    font-size: 0.83rem;
    margin-bottom: 24px;
}

/* Input with icon */
.input-icon-wrap {
    position: relative;
}
.input-icon-wrap .form-control {
    padding-left: 42px;
}
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Password toggle */
.input-icon-wrap .pass-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    pointer-events: all;
}
.input-icon-wrap .pass-toggle:hover { color: var(--primary); }

/* Submit button */
.auth-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-submit:hover {
    transform: translateY(-1px);
    background: var(--primary-dark);
}
.auth-submit:active { transform: translateY(0); }

/* Forgot password link */
.forgot-link {
    display: flex;
    justify-content: flex-end;
    margin-top: -10px;
    margin-bottom: 18px;
}
.forgot-link a {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.forgot-link a:hover { color: var(--primary); }

/* ── Auth Footer ──────────────────────────────────────────── */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ── Lockout notice ───────────────────────────────────────── */
.lockout-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 0.82rem;
    color: #f87171;
    margin-bottom: 16px;
}

/* ── Password strength indicator ─────────────────────────── */
.pw-strength { margin-top: 6px; }
.pw-strength-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    margin-bottom: 4px;
    overflow: hidden;
}
.pw-strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0%;
}
.pw-strength-fill.weak   { width: 33%;  background: var(--danger); }
.pw-strength-fill.medium { width: 66%;  background: var(--warning); }
.pw-strength-fill.strong { width: 100%; background: var(--success); }
.pw-strength-text { font-size: 0.72rem; color: var(--text-muted); }

/* ── Portal Cards ────────────────────────────────────────── */
.portal-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: block;
    color: var(--text-primary);
    transition: var(--transition);
}

a.portal-card {
    text-decoration: none;
    color: var(--text-secondary);
}

a.portal-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    color: var(--primary-dark);
}

a.portal-card:hover i {
    color: var(--primary);
}
