/* ==========================================================================
 * The Pramukh — sign-in screens (portal /login/ + panel /panel/login/).
 * --------------------------------------------------------------------------
 * Self-contained and scoped to .auth-shell so it never touches the console /
 * dashboard theme. A fresh teal→cyan accent on a deep-navy ambient background,
 * with a floating white card. Deliberately NOT the app violet (#5546E0).
 * ====================================================================== */

.auth-shell {
    --auth-accent: #0d9488;   /* teal-600 */
    --auth-accent-2: #0891b2; /* cyan-600 */
    --auth-ink: #0f172a;      /* slate-900 */
    --auth-muted: #64748b;    /* slate-500 */

    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background: #0b1a2e;
    background:
        radial-gradient(1100px 560px at 12% -12%, rgba(13, 148, 136, 0.55), transparent 60%),
        radial-gradient(920px 520px at 112% 18%, rgba(56, 189, 248, 0.42), transparent 55%),
        linear-gradient(135deg, #0f2a43 0%, #0b1a2e 55%, #0a1424 100%);
}

/* Two soft blurred orbs for depth (decorative, non-interactive). */
.auth-shell::before,
.auth-shell::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}
.auth-shell::before { width: 320px; height: 320px; background: #0ea5a4; top: -90px; left: -70px; }
.auth-shell::after  { width: 380px; height: 380px; background: #38bdf8; bottom: -140px; right: -90px; }

/* ---- the card ----------------------------------------------------------- */
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    padding: 40px 36px 30px;
    box-shadow: 0 26px 64px rgba(2, 12, 27, 0.48), 0 2px 8px rgba(2, 12, 27, 0.22);
    animation: authRise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes authRise {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* thin accent seam across the top edge of the card */
.auth-card::before {
    content: "";
    position: absolute;
    top: 0; left: 22px; right: 22px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--auth-accent), var(--auth-accent-2));
    opacity: 0.9;
}

.auth-brand-logo { height: 50px; width: auto; }
.auth-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--auth-ink);
    margin: 16px 0 0;
    letter-spacing: -0.01em;
}
.auth-subtitle {
    color: var(--auth-muted);
    font-size: 0.9rem;
    margin: 6px 0 0;
    line-height: 1.4;
}

/* ---- form fields -------------------------------------------------------- */
.auth-card .form-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.83rem;
    margin-bottom: 0.35rem;
}
.auth-card .form-control,
.auth-card .input-group-text {
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    background: #fff;
    color: var(--auth-ink);
}
.auth-card .input-group-text {
    background: #f8fafc;
    font-weight: 700;
    color: #475569;
}
.auth-card .form-control::placeholder { color: #aab4c2; }
.auth-card .form-control:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.16);
}
/* keep the +91 add-on and the phone field as one seamless rounded pill */
.auth-card .input-group > .input-group-text {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.auth-card .input-group > .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ---- primary button (teal→cyan, replaces the violet btn-primary) -------- */
.auth-card .btn-primary {
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-2) 100%);
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.34);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(13, 148, 136, 0.42);
    filter: brightness(1.04);
}
.auth-card .btn-primary:active { transform: translateY(0); box-shadow: 0 8px 18px rgba(13, 148, 136, 0.34); }
.auth-card .btn-primary:focus-visible { outline: 3px solid rgba(8, 145, 178, 0.45); outline-offset: 2px; }

/* ---- misc --------------------------------------------------------------- */
.auth-card .alert { border-radius: 12px; font-size: 0.88rem; }
.auth-foot {
    margin-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

@media (max-width: 575.98px) {
    .auth-card { padding: 32px 22px 26px; border-radius: 18px; }
    .auth-brand-logo { height: 44px; }
}
