/* ==========================================================================
   Auth: sign-in and account pages (AuthLayout) — no sidebar
   ========================================================================== */

.auth { display: flex; min-height: 100vh; }

/* --- Brand panel (left): matches the sidebar / Production Info navy --- */
.auth-brand {
    flex: 0 0 44%;
    max-width: 560px;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 36px 44px;
    color: #E6ECFA;
    background:
        radial-gradient(520px 320px at 100% 0%, rgba(91,140,255,.32), transparent 60%),
        radial-gradient(420px 300px at 0% 100%, rgba(167,139,250,.18), transparent 60%),
        linear-gradient(180deg, #132449 0%, #0A1430 100%);
    position: relative;
    overflow: hidden;
}
.auth-brand::after {
    /* faint grid texture */
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}
.auth-brand > * { position: relative; z-index: 1; }

/* Centered company logo + app name */
.auth-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.auth-logo { width: 100%; max-width: 340px; height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
.auth-app {
    font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: #C9D5EE;
    padding: 7px 16px;
    border: 1px solid rgba(214,178,94,.35);
    border-radius: 999px;
    background: rgba(214,178,94,.08);
}

/* Partner + copyright */
.auth-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.auth-partner { display: flex; align-items: center; gap: 12px; }
.auth-partner span { font-size: 11px; color: #8EA0C6; text-transform: uppercase; letter-spacing: .08em; }
.auth-partner img { height: 52px; width: auto; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.auth-copy { font-size: 11.5px; color: #7183A8; text-align: right; }

/* --- Form side (right) --- */
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card {
    width: 100%; max-width: 400px;
    border: 1px solid transparent;
    border-top: 4px solid transparent;
    border-radius: 16px;
    padding: 30px 32px 26px;
    box-shadow: 0 24px 48px -24px rgba(20,30,50,.25), 0 2px 6px rgba(20,30,50,.05);
    background:
        linear-gradient(rgba(255,255,255,.96), rgba(255,255,255,.96)) padding-box,
        linear-gradient(90deg, #3B6FE0, #A78BFA) top / 100% 4px no-repeat border-box,
        linear-gradient(#E3E8F2, #E3E8F2) border-box;
}

.auth-head { margin-bottom: 20px; }
.auth-head h1 {
    font-size: 24px; margin: 0 0 6px; letter-spacing: -.02em;
    background: linear-gradient(90deg, #14213D 30%, #3B6FE0);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-head p { margin: 0; font-size: 13px; color: var(--muted); }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.link-sm { font-size: 12px; font-weight: 600; text-decoration: none; }
.link-sm:hover { text-decoration: underline; }

.input {
    width: 100%;
    font: inherit; font-size: 14px; color: var(--text);
    padding: 11px 13px;
    background: #F7F9FC;
    border: 1px solid #DCE3EF;
    border-radius: 9px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input::placeholder { color: #A3AEC4; }
.input:focus { background: #FFFFFF; border-color: #3B6FE0; box-shadow: 0 0 0 4px rgba(59,111,224,.14); }
.input.invalid { border-color: var(--red); outline: none; }
.input.invalid:focus { box-shadow: 0 0 0 4px rgba(225,77,99,.14); }
.field-error, .auth-card .validation-message { font-size: 12px; color: var(--red); }

.check { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: #3B6FE0; }

.btn-primary, .auth-card .btn.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%;
    padding: 12px 16px;
    font: inherit; font-size: 14px; font-weight: 600; color: #FFFFFF;
    background: linear-gradient(135deg, #3B6FE0, #5B8CFF);
    border: 0; border-radius: 10px;
    box-shadow: 0 10px 20px -8px rgba(59,111,224,.6);
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-primary:hover, .auth-card .btn.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 14px 24px -10px rgba(59,111,224,.7); }
.btn-primary:active, .auth-card .btn.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible, .auth-card .btn.btn-primary:focus-visible { outline: 3px solid rgba(59,111,224,.35); outline-offset: 2px; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #E3E8F2; }

.auth-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #EDF1F7; font-size: 12.5px; color: var(--muted); }
.auth-foot a { text-decoration: none; font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

/* Info box (request submitted, account unavailable) */
.auth-note { margin: 0 0 18px; padding: 13px 15px; background: #F3F6FD; border: 1px solid #DCE5F7; border-radius: 10px; }
.auth-note b { display: block; font-size: 13px; margin-bottom: 4px; color: var(--text); }
.auth-note p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
a.btn-primary { text-decoration: none; }

/* Status message (StatusMessage component) */
.auth-card .alert { font-size: 13px; padding: 10px 13px; border-radius: 9px; margin-bottom: 16px; border: 1px solid transparent; }
.auth-card .alert-danger { background: var(--red-bg); border-color: #F4C6CE; color: #B4364A; }
.auth-card .alert-success { background: var(--green-bg); border-color: #BDE8D2; color: #157A49; }

/* --- Other template account pages (Register, Forgot password, …) use Bootstrap-style
       markup; give it the same look without loading Bootstrap --- */
.auth-card h1 { font-size: 22px; margin: 0 0 8px; letter-spacing: -.02em; }
.auth-card h2 { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.auth-card h3 { font-size: 13px; margin: 0 0 8px; }
.auth-card hr { border: 0; border-top: 1px solid #EDF1F7; margin: 12px 0 16px; }
.auth-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.auth-card .row, .auth-card [class*="col-"] { display: block; width: 100%; margin: 0; padding: 0; }
.auth-card .text-danger { color: var(--red); font-size: 12.5px; }
.auth-card .mb-3 { margin-bottom: 14px; }
.auth-card .form-floating { display: flex; flex-direction: column-reverse; gap: 6px; }
.auth-card .form-floating > label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.auth-card .form-control {
    width: 100%; font: inherit; font-size: 14px; color: var(--text);
    padding: 11px 13px; background: #F7F9FC; border: 1px solid #DCE3EF; border-radius: 9px; outline: none;
}
.auth-card .form-control:focus { background: #FFFFFF; border-color: #3B6FE0; box-shadow: 0 0 0 4px rgba(59,111,224,.14); }
.auth-card .form-control::placeholder { color: transparent; }
.auth-card ul.text-danger, .auth-card .validation-errors { padding-left: 18px; margin: 0 0 12px; }

/* --- Responsive: brand panel collapses into a header strip --- */
@media (max-width: 900px) {
    .auth { flex-direction: column; }
    .auth-brand { flex: none; max-width: none; padding: 18px 22px; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
    .auth-center { flex: 0 1 auto; align-items: flex-start; gap: 0; }
    .auth-logo { max-width: 170px; }
    .auth-app, .auth-copy, .auth-partner span { display: none; }
    .auth-partner img { height: 38px; }
    .auth-main { align-items: flex-start; padding: 28px 16px 40px; }
}
@media (max-width: 440px) {
    .auth-card { padding: 24px 20px 20px; border-radius: 14px; }
}
