/*
 * Sign-in / sign-up / reset / two-step pages (layout.auth).
 * Every rule starts at body.auth-page: the theme's style.min.css is loaded
 * again at the end of the body, so plain selectors would lose to it.
 */
body.auth-page {
    --au-navy: #06324a;
    --au-navy-2: #0a4a63;
    --au-green: #2fbf71;
    --au-green-2: #5ad89a;
    --au-blue: #1e88e5;
    --au-ink: #0f1f2e;
    --au-muted: #6b7a8c;
    --au-line: #e3e9f1;
    --au-radius: 14px;
    background: #f4f7fb;
    color: var(--au-ink);
}

/* ---------- Brand panel ---------- */
body.auth-page .auth-wrapper .auth-brand {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, var(--au-navy) 0%, var(--au-navy-2) 55%, #0d6b6b 100%) !important;
    color: #fff;
    padding: 32px 48px 22px;
}
body.auth-page .auth-brand::before,
body.auth-page .auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}
body.auth-page .auth-brand::before {
    width: 420px; height: 420px;
    top: -160px; right: -160px;
    background: radial-gradient(circle, rgba(47, 191, 113, .35), transparent 70%);
}
body.auth-page .auth-brand::after {
    width: 360px; height: 360px;
    bottom: -140px; left: -120px;
    background: radial-gradient(circle, rgba(30, 136, 229, .30), transparent 70%);
}
body.auth-page .auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
body.auth-page .auth-logo {
    height: 46px;
    width: auto;
    filter: brightness(0) invert(1);
}
body.auth-page .auth-eyebrow {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 30px;
    padding: 6px 15px 6px 13px;
    border-radius: 999px;
    border: 1px solid transparent;
    /* inner fill, then a flowing gradient that shows only in the border */
    background:
        linear-gradient(rgba(8, 50, 70, .92), rgba(8, 50, 70, .92)) padding-box,
        linear-gradient(90deg, #5ad89a, #67e8f9, #818cf8, #f0abfc, #5ad89a) border-box;
    background-size: 100% 100%, 300% 100%;
    animation: au-border-flow 6s linear infinite, au-rise .7s ease-out both;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
    width: fit-content;
    box-shadow: 0 0 18px -4px rgba(90, 216, 154, .45);
}
/* light sweeping across every few seconds */
body.auth-page .auth-eyebrow::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: skewX(-20deg);
    animation: au-shine 4.5s ease-in-out 1s infinite;
    pointer-events: none;
}
body.auth-page .auth-eyebrow .dot {
    position: relative;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--au-green-2);
    box-shadow: 0 0 8px var(--au-green-2);
}
/* "live" ripple from the dot */
body.auth-page .auth-eyebrow .dot::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--au-green-2);
    animation: au-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes au-border-flow {
    from { background-position: 0 0, 0% 0; }
    to   { background-position: 0 0, 300% 0; }
}
@keyframes au-shine {
    0%, 55% { left: -60%; }
    100%    { left: 130%; }
}
@keyframes au-ping {
    0%        { transform: scale(1);   opacity: .75; }
    75%, 100% { transform: scale(2.8); opacity: 0; }
}
@keyframes au-rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    body.auth-page .auth-eyebrow,
    body.auth-page .auth-eyebrow::after,
    body.auth-page .auth-eyebrow .dot::before { animation: none; }
    body.auth-page .auth-eyebrow::after { display: none; }
}
body.auth-page .auth-headline {
    color: #fff;
    font-size: clamp(28px, 2.6vw, 40px);
    line-height: 1.15;
    font-weight: 700;
    margin: 18px 0 14px;
    letter-spacing: -.01em;
}
body.auth-page .auth-headline .hl {
    background: linear-gradient(90deg, var(--au-green-2), #9be7ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* Rotating phrase: one line, its gradient follows the matching feature card */
body.auth-page .auth-rotator {
    display: inline-block;
    white-space: nowrap;
    will-change: transform, opacity, filter;
}
body.auth-page .auth-rotator.tone-green  { background-image: linear-gradient(90deg, #5ad89a, #9be7ff); }
body.auth-page .auth-rotator.tone-blue   { background-image: linear-gradient(90deg, #7dd3fc, #818cf8); }
body.auth-page .auth-rotator.tone-violet { background-image: linear-gradient(90deg, #d8b4fe, #f0abfc); }
body.auth-page .auth-rotator.tone-rose   { background-image: linear-gradient(90deg, #fda4af, #fdba74); }
body.auth-page .auth-rotator.tone-cyan   { background-image: linear-gradient(90deg, #67e8f9, #a5f3fc); }
body.auth-page .auth-rotator.tone-amber  { background-image: linear-gradient(90deg, #fde68a, #fb923c); }
body.auth-page .auth-lead {
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}
body.auth-page .auth-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
body.auth-page .auth-feature {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: var(--au-radius);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: background .2s ease, transform .2s ease;
}
body.auth-page .auth-feature:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-2px);
}
body.auth-page .auth-feature .ic {
    position: relative;
    flex: 0 0 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, var(--ic-1) 0%, var(--ic-2) 48%, var(--ic-3) 100%);
    box-shadow:
        0 0 0 4px var(--ic-halo),
        0 10px 22px -8px var(--ic-glow),
        inset 0 1px 1px rgba(255, 255, 255, .55),
        inset 0 -6px 12px -6px rgba(0, 0, 0, .25);
    transition: transform .3s cubic-bezier(.2, .8, .3, 1.4), box-shadow .3s ease;
}
/* glass sheen on the top half */
body.auth-page .auth-feature .ic::after {
    content: "";
    position: absolute;
    inset: 1px 1px 50% 1px;
    border-radius: 13px 13px 40% 40% / 13px 13px 14px 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0));
    pointer-events: none;
}
body.auth-page .auth-feature .ic svg {
    width: 22px; height: 22px;
    position: relative; z-index: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
}
body.auth-page .auth-feature:hover {
    border-color: var(--ic-glow);
    background: linear-gradient(135deg, var(--ic-halo), rgba(255, 255, 255, .06));
}
body.auth-page .auth-feature:hover .ic {
    transform: translateY(-2px) scale(1.07) rotate(-5deg);
    box-shadow:
        0 0 0 5px var(--ic-halo),
        0 14px 28px -8px var(--ic-glow),
        inset 0 1px 1px rgba(255, 255, 255, .55),
        inset 0 -6px 12px -6px rgba(0, 0, 0, .25);
}
/* Jewel tones: light top-left, rich middle, deep bottom-right */
body.auth-page .ic-green  { --ic-1: #a7f3d0; --ic-2: #10b981; --ic-3: #047857; --ic-glow: rgba(16, 185, 129, .6);  --ic-halo: rgba(16, 185, 129, .14); }
body.auth-page .ic-blue   { --ic-1: #bae6fd; --ic-2: #3b82f6; --ic-3: #4338ca; --ic-glow: rgba(59, 130, 246, .6);  --ic-halo: rgba(59, 130, 246, .15); }
body.auth-page .ic-violet { --ic-1: #e9d5ff; --ic-2: #a855f7; --ic-3: #6d28d9; --ic-glow: rgba(168, 85, 247, .6);  --ic-halo: rgba(168, 85, 247, .15); }
body.auth-page .ic-amber  { --ic-1: #fef08a; --ic-2: #f59e0b; --ic-3: #ea580c; --ic-glow: rgba(245, 158, 11, .6);  --ic-halo: rgba(245, 158, 11, .14); }
body.auth-page .ic-rose   { --ic-1: #fecdd3; --ic-2: #f43f5e; --ic-3: #be123c; --ic-glow: rgba(244, 63, 94, .55);  --ic-halo: rgba(244, 63, 94, .14); }
body.auth-page .ic-cyan   { --ic-1: #cffafe; --ic-2: #06b6d4; --ic-3: #0e7490; --ic-glow: rgba(6, 182, 212, .6);   --ic-halo: rgba(6, 182, 212, .15); }
body.auth-page .auth-feature h6 {
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 0 3px;
}
body.auth-page .auth-feature p {
    color: rgba(255, 255, 255, .68);
    font-size: 12.5px;
    line-height: 1.45;
    margin: 0;
}
body.auth-page .auth-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
body.auth-page .auth-tags span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, .14);
    border: 1px solid rgba(245, 158, 11, .3);
    white-space: nowrap;
    cursor: help;
    transition: background .2s ease;
}
body.auth-page .auth-tags span:hover { background: rgba(245, 158, 11, .28); }
body.auth-page .auth-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
}
body.auth-page .auth-trust i {
    color: var(--au-green-2);
    margin-right: 6px;
}
body.auth-page .auth-copy {
    margin-top: auto;
    padding-top: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
}

/* ---------- Form side ---------- */
body.auth-page .auth-wrapper .auth-main {
    position: relative;
    overflow: hidden;
    background: #f4f7fb;
    padding: 40px 16px;
}
body.auth-page .auth-main::before {
    content: "";
    position: absolute;
    width: 520px; height: 520px;
    top: -200px; right: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 191, 113, .14), transparent 70%);
    pointer-events: none;
}
body.auth-page .auth-main::after {
    content: "";
    position: absolute;
    width: 480px; height: 480px;
    bottom: -220px; left: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 136, 229, .12), transparent 70%);
    pointer-events: none;
}
body.auth-page .auth-main > * {
    position: relative;
    z-index: 1;
}
body.auth-page .auth-main .card {
    border: 1px solid var(--au-line);
    border-radius: 20px;
    box-shadow: 0 24px 60px -20px rgba(6, 50, 74, .25), 0 2px 6px rgba(6, 50, 74, .05) !important;
    background: #fff;
    overflow: hidden;
}
body.auth-page .auth-main .card::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--au-navy-2), var(--au-green), var(--au-blue));
}
body.auth-page .auth-main .card-body {
    padding: 34px 36px 30px;
}
body.auth-page .auth-main h2,
body.auth-page .auth-main h3 {
    font-weight: 700;
    color: var(--au-ink);
    letter-spacing: -.01em;
}
body.auth-page .auth-main h2 { font-size: 26px; margin-bottom: 6px; }
body.auth-page .auth-sub {
    color: var(--au-muted);
    font-size: 15px;
    margin-bottom: 0;
}

/* Admin / Employee switch as a segmented control */
body.auth-page .auth-main .nav-pills.auth-switch {
    background: #eef2f7;
    border-radius: 12px;
    padding: 5px;
    gap: 4px;
}
body.auth-page .auth-switch .nav-link {
    border-radius: 9px;
    color: var(--au-muted);
    font-weight: 600;
    padding: 9px 12px;
    transition: all .2s ease;
}
body.auth-page .auth-switch .nav-link:hover { color: var(--au-ink); }
body.auth-page .auth-switch .nav-link.active {
    background: #fff;
    color: var(--au-navy-2);
    box-shadow: 0 2px 8px rgba(6, 50, 74, .12);
}
body.auth-page .auth-switch .nav-link i { margin-right: 6px; }
body.auth-page .auth-main .tab-pane.p-3 { padding: 18px 0 0 !important; }

/* Inputs */
body.auth-page .auth-main .form-floating > .form-control {
    border: 1.5px solid var(--au-line);
    border-radius: 12px;
    background-color: #fbfcfe;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
body.auth-page .auth-main .form-floating > .form-control:focus {
    border-color: var(--au-green);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(47, 191, 113, .15);
}
body.auth-page .auth-main .form-floating > label { color: var(--au-muted); }
body.auth-page .auth-main .form-check-input {
    border-radius: 6px;
    border-color: #c9d3df;
}
body.auth-page .auth-main .form-check-input:checked {
    background-color: var(--au-green);
    border-color: var(--au-green);
}
body.auth-page .auth-main a { color: var(--au-blue); }
body.auth-page .auth-main a:hover { color: var(--au-navy-2); }

/* Buttons */
body.auth-page .auth-main .btn-primary {
    border: 0;
    border-radius: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--au-navy-2), #0d7a6b 60%, var(--au-green));
    background-size: 160% 100%;
    background-position: 0 0;
    box-shadow: 0 10px 22px -10px rgba(13, 122, 107, .8);
    transition: background-position .35s ease, transform .15s ease, box-shadow .2s ease;
}
body.auth-page .auth-main .btn-primary:hover,
body.auth-page .auth-main .btn-primary:focus {
    background-position: 100% 0;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -10px rgba(13, 122, 107, .9);
}
body.auth-page .auth-main .btn-light-secondary,
body.auth-page .auth-main .btn-light-info {
    border-radius: 12px;
    background: #eef2f7;
    border: 0;
}
body.auth-page .auth-main .button-group .btn-primary { flex: 1 1 auto; }

body.auth-page .auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--au-muted);
    font-size: 13px;
    margin: 22px 0 0;
}
body.auth-page .auth-divider::before,
body.auth-page .auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--au-line);
}
body.auth-page .auth-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(47, 191, 113, .1), rgba(30, 136, 229, .08));
    border: 1px dashed rgba(47, 191, 113, .45);
    font-size: 14px;
}
body.auth-page .auth-cta strong { color: var(--au-ink); display: block; }
body.auth-page .auth-cta span { color: var(--au-muted); font-size: 12.5px; }
body.auth-page .auth-cta a {
    white-space: nowrap;
    font-weight: 700;
    color: #0d7a6b;
}
body.auth-page .auth-hint {
    font-size: 12.5px;
    color: var(--au-muted);
    margin-top: 14px;
}
body.auth-page .auth-hint i { color: var(--au-green); margin-right: 4px; }

body.auth-page .auth-perks {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
body.auth-page .auth-perks li {
    font-size: 12.5px;
    font-weight: 600;
    color: #0d7a6b;
    background: rgba(47, 191, 113, .1);
    border-radius: 999px;
    padding: 5px 11px;
}
body.auth-page .auth-perks li i { margin-right: 5px; }

/* ---------- Small screens: a compact brand header, no feature grid ---------- */
@media (max-width: 991.98px) {
    body.auth-page .auth-wrapper { align-content: flex-start; }
    body.auth-page .auth-wrapper .auth-main { flex: 1 0 auto; align-items: flex-start !important; padding-top: 28px; }
    body.auth-page .auth-wrapper .auth-brand { padding: 28px 24px; }
    body.auth-page .auth-eyebrow { margin-top: 18px; }
    body.auth-page .auth-headline { font-size: 24px; margin-bottom: 8px; }
    body.auth-page .auth-lead { margin-bottom: 0; font-size: 14.5px; }
    body.auth-page .auth-features,
    body.auth-page .auth-trust,
    body.auth-page .auth-copy { display: none; }
    body.auth-page .auth-main .card-body { padding: 26px 22px; }
}
@media (min-width: 992px) and (max-height: 760px) {
    body.auth-page .auth-feature p { display: none; }
    body.auth-page .auth-eyebrow { margin-top: 24px; }
}
