/* Sign-in pages styled like the UA POS login: a white card on grey with a photo panel on the right.
   Plain CSS on top of app.css, so Tailwind doesn't need rebuilding and upstream's auth styles stay untouched.
   Light only, like the POS. */

.pos-auth {
    margin: 0;
    min-height: 100vh;
    display: flex;
    background: #eef0f3;
    color: #0f172a;
    color-scheme: light;
    font-family: 'DM Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.pos-auth-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    box-sizing: border-box;
}

.pos-auth-photo {
    display: none;
    background: #2b2f33 url('/images/login-photo.jpg') center / cover no-repeat;
}

@media (min-width: 1024px) {
    .pos-auth-main, .pos-auth-photo {
        display: flex;
        width: 50%;
    }
}

.pos-auth-card {
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 34px 34px 32px;
    background: #fff;
    border: 1px solid #dfe2e7;
    border-radius: 10px;
}

/* Ticky's auth blocks space their children with margins; spacing here comes from gap instead. */
.pos-auth-card .auth-form,
.pos-auth-card .auth-section,
.pos-auth-card .auth-items-group,
.pos-auth-card .auth-inp-label {
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.pos-auth-card .auth-form > *,
.pos-auth-card .auth-section > *,
.pos-auth-card .auth-items-group > *,
.pos-auth-card .auth-inp-label > * {
    margin: 0;
}

.pos-auth-card .auth-form { gap: 18px; }
.pos-auth-card .auth-section { gap: 18px; }
.pos-auth-card .auth-inp-label { gap: 6px; }
.pos-auth-card .auth-items-group { gap: 8px; }

.pos-auth-card h1 {
    margin: 0;
    font-family: inherit;
    font-size: 25px !important; /* app.css sizes every h1 with !important */
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: #0f172a;
}

.pos-auth-card .subtext {
    font-size: 15px;
    font-weight: 400;
    color: #475569;
}

.pos-auth-card .auth-label {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.pos-auth-card .auth-input {
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid #b8bec8;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 16px; /* 16px stops iOS zooming into the field */
    font-weight: 400;
    box-shadow: none;
}

.pos-auth-card .auth-input::placeholder {
    color: #64748b;
}

.pos-auth-card .auth-input:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 1px #1d4ed8;
}

.pos-password {
    position: relative;
    display: flex;
}

.pos-password .auth-input {
    padding-inline-end: 64px;
}

.pos-password-toggle {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    padding: 0 14px;
    border: 0;
    background: none;
    color: #1d4ed8;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.pos-password-toggle:hover { color: #1e40af; }

.pos-auth-card .auth-link {
    align-self: flex-start;
    font-size: 15px;
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pos-auth-card .auth-link:hover { color: #1d4ed8; }

.pos-auth-card .field-validation-error {
    font-size: 15px;
    color: #dc2626;
}

.pos-auth-card .btn {
    width: 100%;
    max-width: none;
    height: 46px;
    box-sizing: border-box;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.pos-auth-card .btn-yellow {
    border: 0;
    background: #1d4ed8;
    color: #fff;
}

.pos-auth-card .btn-yellow:hover { background: #1e40af; }

/* Secondary actions (Create one!, Back to ...): outlined, so the blue button stays the one obvious choice. */
.pos-auth-card .btn-purple {
    border: 1px solid #b8bec8;
    background: #fff;
    color: #0f172a;
}

.pos-auth-card .btn-purple:hover { background: #f1f5f9; }

.pos-auth-card .btn:focus-visible,
.pos-auth-card .auth-link:focus-visible,
.pos-password-toggle:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}

.pos-auth-card .warning {
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 15px;
}

.pos-auth-card [role="status"] {
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 15px;
}
