/* The anonymous shell: Prijava, Aktivacija racuna and the error page.
   Loaded ONLY by Views/Shared/_Layout.cshtml.

   These three screens used to render on the untouched ASP.NET Core scaffold -
   Bootstrap 5, a navbar reading "FinesaNET.Pos.Leads.Web" with a Home link, a
   copyright footer, and blue #0077cc links that matched nothing else in the
   product. It is the FIRST screen every user sees, so it was also the only place
   where the app looked like a different application than the one behind it.

   The palette, radii and control sizes here are the mobile shell's, not the
   admin shell's: an agent on a phone is the most common person to hit a login
   screen, and a 54px button and a 50px field are the right size for a thumb.

   No Bootstrap and no jQuery are loaded here any more. Client-side validation is
   the browser's own (required / type=email); the server validates regardless. */

* { box-sizing: border-box; }

.auth-body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #0f172a;
    /* --bg is the tenant background token. This is the one screen that reads it -
       both product shells paint a hardcoded page colour instead. */
    background: var(--bg, #f8fafc);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
}

.auth-screen { width: 100%; max-width: 380px; }

.auth-head { text-align: center; margin-bottom: 22px; }
.auth-mark {
    width: 72px; height: 72px; border-radius: 21px;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 800;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}
.auth-title { font-size: 25px; font-weight: 800; margin: 0; }
.auth-sub { font-size: 14px; color: #64748b; margin: 6px 0 0; }

.auth-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-label { display: block; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.auth-input {
    width: 100%; height: 50px;
    border: 1.5px solid #e2e8f0; border-radius: 13px;
    padding: 0 14px;
    font-family: inherit; font-size: 15px; color: #0f172a;
    background: #fff; outline: none;
}
.auth-input:focus { border-color: var(--accent); }

.auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 54px;
    border-radius: 14px; border: 1.5px solid #e2e8f0;
    background: #fff; color: #0f172a;
    font-family: inherit; font-size: 16px; font-weight: 700;
    cursor: pointer; text-decoration: none;
}
.auth-btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Divider between the password form and the Google button. */
.auth-or {
    display: flex; align-items: center; gap: 10px;
    margin: 16px 0 12px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: #94a3b8;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }

/* Validation summary. Server-rendered, so it is a block and not a toast - there
   is nowhere to navigate to that would carry a toast forward. */
.auth-error {
    background: #fee2e2; color: #b91c1c;
    border-radius: 12px; padding: 11px 13px;
    font-size: 13.5px; font-weight: 600; line-height: 1.5;
}
.auth-error:empty { display: none; }
.auth-error ul { margin: 0; padding-left: 18px; }
.auth-error li + li { margin-top: 4px; }

.auth-foot { margin: 16px 0 0; text-align: center; font-size: 13px; color: #94a3b8; }

/* The error page. */
.auth-error-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: #fee2e2; color: #b91c1c;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 800;
    margin: 0 auto 16px;
}
.auth-reqid {
    margin-top: 14px; padding-top: 14px; border-top: 1px solid #f1f5f9;
    font-size: 12px; color: #94a3b8; text-align: center;
}
.auth-reqid code {
    font-family: ui-monospace, Consolas, monospace;
    background: #f1f5f9; border-radius: 5px; padding: 2px 6px; color: #475569;
}

/* Keyboard focus. The product shells had no focus style at all - the only real
   focus ring in the repo was Bootstrap's, on exactly these screens, and it left
   with Bootstrap. :focus-visible so a mouse press never paints a ring. */
.auth-input:focus-visible,
.auth-btn:focus-visible,
.auth-link:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.auth-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
