/* Sign-in pages (sign in, sign up, password, OTP) of all three apps: one look.
   The same file is in member-portal/public/css, compliance/public/css and dms-web/webroot/css: keep them identical. */
:root {
    --auth-bg: #f4f6fa;
    --auth-surface: #ffffff;
    --auth-fg: #1b2433;
    --auth-muted: #667085;
    --auth-border: #d9dee7;
    --auth-primary: #1b84ff;
    --auth-primary-hover: #0f6fe0;
    --auth-focus: rgba(27, 132, 255, 0.18);
    --auth-radius-md: 8px;
    --auth-radius-lg: 12px;
    --auth-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.08);
}

body.auth-page {
    margin: 0;
    background: var(--auth-bg) !important;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 14px;
    color: var(--auth-fg);
    min-height: 100vh;
}

/* page: brand picture on the left, card on the right */
.auth-split {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding: 32px 16px;
    box-sizing: border-box;
}
.auth-brand { flex: 0 1 460px; min-width: 300px; display: flex; justify-content: center; }
.auth-brand img { max-width: 100%; max-height: 225px; height: auto; }

/* the card */
.auth-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 440px;
    padding: 40px 32px;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-lg);
    box-shadow: var(--auth-shadow);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    color: var(--auth-fg);
}
.auth-card-wide { max-width: 640px; }

/* card header: logo, portal name, what the page does */
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-card-logo { display: block; margin: 0 auto 16px; max-height: 72px; max-width: 220px; width: auto; }
.auth-card .auth-title {
    margin: 0 0 4px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--auth-fg) !important;
    font-family: inherit;
}
.auth-card .auth-sub { margin: 0; font-size: 14px; color: var(--auth-muted) !important; }
.auth-card .auth-note { margin: 0 0 16px; font-size: 14px; color: var(--auth-muted); line-height: 1.5; }

/* fields */
.auth-card .auth-field { position: relative; margin-bottom: 16px; }
.auth-card .form-label, .auth-card label.form-label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--auth-fg); }
.auth-card .form-control,
.auth-card .form-select,
.auth-card input[type="text"], .auth-card input[type="email"], .auth-card input[type="number"],
.auth-card input[type="password"], .auth-card input[type="date"], .auth-card select {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--auth-border) !important;
    border-radius: var(--auth-radius-md) !important;
    background-color: var(--auth-surface) !important;
    color: var(--auth-fg);
    font-size: 14px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-card input[type="password"] { padding-right: 40px; }
.auth-card input[type="file"].form-control { padding: 10px 12px; }
.auth-card .form-control:focus, .auth-card .form-select:focus, .auth-card input:focus, .auth-card select:focus {
    border-color: var(--auth-primary) !important;
    box-shadow: 0 0 0 3px var(--auth-focus) !important;
    outline: none;
}
.auth-card .auth-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--auth-muted);
    background: none;
    border: 0;
    cursor: pointer;
    line-height: 1;
}
.auth-card .position-relative > .auth-eye { top: 22px; }

/* remember me / forgot password row, checkboxes */
.auth-card .auth-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: 13px; }
.auth-card .auth-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--auth-fg); margin: 0; }
.auth-card .auth-check .form-check-input { width: 18px; height: 18px; margin: 0; flex: none; }

/* main button */
.auth-card .btn-primary {
    width: 100%;
    min-height: 44px;
    border-radius: var(--auth-radius-md) !important;
    background: var(--auth-primary) !important;
    border: 1px solid var(--auth-primary) !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    transition: background-color .15s ease;
}
.auth-card .btn-primary:hover { background: var(--auth-primary-hover) !important; border-color: var(--auth-primary-hover) !important; }
.auth-card .btn-primary:focus-visible { box-shadow: 0 0 0 3px var(--auth-focus) !important; }

/* links, the line under the button, the query number */
.auth-card a.link-primary, .auth-card .auth-link { color: var(--auth-primary) !important; font-weight: 500; text-decoration: none; }
.auth-card a.link-primary:hover, .auth-card .auth-link:hover { text-decoration: underline; }
.auth-card .auth-alt { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--auth-muted); }
.auth-card .auth-hint { margin: 16px 0 0; text-align: center; color: var(--auth-muted); font-size: 12px; }
.auth-card .auth-contact {
    margin: 24px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--auth-border);
    text-align: center;
    font-size: 13px;
    color: var(--auth-muted);
}
.auth-card .auth-contact a { color: var(--auth-fg); font-weight: 600; text-decoration: none; white-space: nowrap; }
.auth-card .auth-contact a:hover { color: var(--auth-primary); }

.auth-card .alert, .auth-card .message { border-radius: var(--auth-radius-md); margin-bottom: 16px; font-size: 13px; }

/* tablet and phone: picture above the card */
@media (max-width: 991.98px) {
    .auth-split { flex-direction: column; justify-content: flex-start; gap: 24px; }
    .auth-brand { flex: none; min-width: 0; }
    .auth-brand img { max-height: 110px; }
}
@media (max-width: 575.98px) {
    .auth-card { padding: 24px 16px; border-radius: var(--auth-radius-md); }
}
