/* Shared styling for the bare "auth"-style Login page, ported from SorathERP.Web's
   css/auth-shared.css so the two apps present the same look. */

.auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(180deg, var(--cloud) 0%, #FFFFFF 55%);
    font-family: 'Archivo', system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--navy);
}

.auth-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(22, 41, 78, .10);
    padding: 36px 32px 32px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.auth-brand img { width: 34px; height: 34px; object-fit: contain; }
.auth-brand span { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.auth-brand .accent { color: var(--orange); }

.auth h1 { margin: 0 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.auth .lede { margin: 0 0 24px; font-size: 14px; line-height: 1.5; color: var(--slate); }
.auth .lede strong { color: var(--navy); font-weight: 700; }

.field { margin-bottom: 16px; }
.field label {
    display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--slate-soft); margin-bottom: 6px;
}
.field input, .field select {
    width: 100%; box-sizing: border-box; padding: 11px 13px;
    border-radius: 9px; border: 1.5px solid var(--border); background: #fff;
    color: var(--navy); font-size: 15px; font-family: inherit; outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #B7C2D6; }
.field input:focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(245, 137, 31, .25); }
.field select:disabled { opacity: .6; }
.field-error { margin-top: 6px; font-size: 12.5px; color: var(--danger); }

.auth-alert {
    display: flex; padding: 11px 14px; border-radius: 9px;
    background: var(--danger-bg); color: var(--danger);
    font-size: 13px; line-height: 1.5; margin-bottom: 18px;
}

.btn-primary {
    width: 100%; padding: 13px 16px; margin-top: 6px; border: none; border-radius: 9px;
    background: var(--orange); color: #fff; font-size: 15px; font-weight: 700;
    font-family: inherit; cursor: pointer; box-shadow: 0 4px 14px rgba(245, 137, 31, .3);
    transition: background .15s ease;
}
.btn-primary:hover:not(:disabled) { background: var(--orange-hover); }
.btn-primary:disabled { opacity: .65; cursor: default; box-shadow: none; }

.btn-text {
    display: block; width: 100%; padding: 10px 0; margin-top: 6px;
    border: none; background: none; color: var(--slate); font-size: 13.5px;
    font-family: inherit; cursor: pointer; text-align: center;
}
.btn-text:hover:not(:disabled) { color: var(--orange); }
.btn-text.muted { color: var(--slate-soft); font-size: 13px; }
.btn-text:disabled { opacity: .6; cursor: default; }

.auth-footer { font-size: 12.5px; color: var(--slate-soft); }

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