/* =====================================================================
   Sign-in screens — Law Offices of Panag & Babu

   The auth pages used to run on a second theme entirely (public/assets,
   Velzon) which shared nothing with the app behind the login. This puts
   them on the same system as the dashboards: the ambient backdrop from
   topnav-modern.css, a glass card, the same indigo accent and the same
   control shapes, so signing in and landing on the dashboard feel like
   one product.

   Self-contained on purpose — it does not depend on app-modern.css,
   because auth pages never load the app shell.
   ===================================================================== */

/* These pages do not load Bootstrap, so there is no global reset to
   inherit — without this a 100%-wide input plus its padding overflows
   the card. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* auth pages do not load topnav-modern.css, so the backdrop tokens are
       repeated here; keep the two in step if you change the photo */
    --app-photo: url("../img/office-bg.jpg");
    --app-bg:
        linear-gradient(180deg,
            rgba(241, 243, 248, .90) 0%,
            rgba(233, 237, 245, .93) 100%),
        var(--app-photo);

    --au-accent: #4f46e5;
    --au-accent-deep: #4338ca;
    --au-accent-ink: #3730a3;
    --au-ink: #101828;
    --au-ink-2: #46536b;
    --au-muted: #79859b;
    --au-line: rgba(16, 24, 40, .10);
    --au-glass: rgba(255, 255, 255, .62);
    --au-glass-line: rgba(255, 255, 255, .55);
    --au-blur: saturate(1.7) blur(22px);
    --au-sh: 0 1px 2px rgba(16, 24, 40, .04), 0 26px 60px -24px rgba(16, 24, 40, .34);
    --au-ring: 0 0 0 3px rgba(79, 70, 229, .16);
    --au-r: 22px;
    --au-r-sm: 11px;
    --au-font: "Calibri", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
    background: #e9edf6;
}

body.au {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 28px 16px;
    /* same backdrop as the app behind the login, so signing in and landing
       on the dashboard feel like one place */
    background-image: var(--app-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: var(--au-font);
    color: var(--au-ink);
}

/* ------------------------------------------------------------------ */
/* Card                                                                */
/* ------------------------------------------------------------------ */
.au-card {
    width: 100%;
    max-width: 424px;
    padding: 34px 34px 30px;
    border: 1px solid var(--au-glass-line);
    border-radius: var(--au-r);
    background: var(--au-glass);
    -webkit-backdrop-filter: var(--au-blur);
    backdrop-filter: var(--au-blur);
    box-shadow: var(--au-sh);
    animation: auRise .5s cubic-bezier(.22, .8, .3, 1) both;
}

@keyframes auRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .au-card { animation: none; }
    .au-card * { transition: none !important; }
}

.au-logo {
    display: block;
    margin: 0 auto 22px;
    text-align: center;
}

.au-logo img {
    height: 58px;
    width: auto;
}

.au-title {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.4px;
    text-align: center;
    color: var(--au-ink);
}

.au-sub {
    margin: 0 0 24px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    color: var(--au-muted);
}

/* ------------------------------------------------------------------ */
/* Fields                                                              */
/* ------------------------------------------------------------------ */
.au-field {
    margin-bottom: 15px;
}

.au-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--au-ink-2);
}

.au-input-wrap {
    position: relative;
}

.au-field input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--au-line);
    border-radius: var(--au-r-sm);
    background: rgba(255, 255, 255, .92);
    font-family: inherit;
    font-size: 14px;
    color: var(--au-ink);
    outline: 0;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.au-field input::placeholder { color: #a9b3c4; }

.au-field input:focus {
    border-color: var(--au-accent);
    box-shadow: var(--au-ring);
}

/* the field carrying a rejected value */
.au-field.is-invalid input {
    border-color: #d92d20;
}

.au-field.is-invalid input:focus {
    box-shadow: 0 0 0 3px rgba(217, 45, 32, .15);
}

.au-field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #b42318;
}

/* password reveal */
.au-reveal {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--au-muted);
    font-size: 15px;
    cursor: pointer;
    border-radius: var(--au-r-sm);
}

.au-reveal:hover { color: var(--au-ink-2); }

.au-reveal:focus-visible {
    outline: 0;
    box-shadow: var(--au-ring);
}

.au-field:has(.au-reveal) input { padding-right: 44px; }

/* ------------------------------------------------------------------ */
/* Actions                                                             */
/* ------------------------------------------------------------------ */
.au-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    margin-top: 6px;
    border: 1px solid var(--au-accent);
    border-radius: var(--au-r-sm);
    background: var(--au-accent);
    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    color: #fff;
    cursor: pointer;
    transition: background .16s ease, box-shadow .16s ease, transform .12s ease;
}

.au-btn:hover {
    background: var(--au-accent-deep);
    border-color: var(--au-accent-deep);
    box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .6);
}

.au-btn:active { transform: translateY(1px); }

.au-links {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.au-links a {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--au-accent-ink);
    text-decoration: none;
}

.au-links a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Messages                                                            */
/* ------------------------------------------------------------------ */
.au-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 18px;
    padding: 11px 14px;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: var(--au-r-sm);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.au-alert i { margin-top: 1px; font-size: 14px; }

.au-alert--error {
    background: rgba(217, 45, 32, .10);
    border-left-color: #d92d20;
    color: #912018;
}

.au-alert--ok {
    background: rgba(15, 157, 110, .12);
    border-left-color: #0f9d6e;
    color: #075e42;
}

.au-alert ul {
    margin: 0;
    padding-left: 16px;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.au-foot {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--au-line);
    font-size: 11.5px;
    text-align: center;
    color: var(--au-muted);
}

@media (max-width: 420px) {
    .au-card { padding: 26px 22px 24px; }
    .au-logo img { height: 48px; }
}
