/* Login styles: shared primitives, authentication layout and validation/dialog states. */
:root {
    --navy-950: #0b1220;
    --navy-900: #101a2e;
    --navy-800: #17233b;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --cyan-400: #22d3ee;
    --canvas: #f5f7fb;
    --surface: #ffffff;
    --border: #dbe3ef;
    --text: #172033;
    --muted: #64748b;
    --danger: #b42318;
    --success: #059669;
    --control-height: 42px;
    --compact-control-height: 36px;
    --control-radius: 9px;
    --card-radius: 15px;
    --content-gap: 18px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--canvas); line-height: 1.45; }
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
}
.auth-brand {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    min-width: 0;
    align-items: center;
    gap: clamp(34px, 5vw, 76px);
    padding: clamp(40px, 5vw, 88px);
    color: white;
    background:
        radial-gradient(circle at 15% 20%, rgba(34, 211, 238, .22), transparent 24rem),
        radial-gradient(circle at 90% 85%, rgba(37, 99, 235, .35), transparent 28rem),
        linear-gradient(145deg, var(--navy-950), var(--navy-800));
}
.auth-brand-copy { min-width: 0; }
.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 42px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 13px;
    background: rgba(255, 255, 255, .1);
    font-weight: 800;
}
.brand-mark.app-logo { overflow: hidden; padding: 0; border: 0; background: #10253f; }
.brand-mark.app-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.auth-brand h1 { max-width: 620px; margin: 10px 0 18px; font-size: clamp(38px, 5vw, 68px); line-height: 1.05; }
.auth-brand-copy > p:last-child { max-width: 560px; color: #cbd5e1; font-size: 17px; line-height: 1.7; }
.eyebrow { margin: 0; color: var(--blue-600); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.auth-brand .eyebrow { color: var(--cyan-400); }
.auth-card {
    width: min(460px, calc(100% - 32px));
    margin: auto;
    padding: 36px;
    border: 1px solid rgba(219, 227, 239, .85);
    border-radius: 20px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 70px rgba(11, 18, 32, .1);
}
.auth-access-panel { width: min(460px, calc(100% - 32px)); display: grid; gap: 14px; margin: auto; }
.auth-access-panel .auth-card { width: 100%; margin: 0; }
.auth-brand-access { min-width: 0; width: 100%; max-width: 620px; justify-self: end; }
.order-portal-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 15px 18px; border: 1px solid rgba(125,211,252,.3); border-radius: 16px; color: white; background: rgba(15,35,64,.72); box-shadow: 0 18px 44px rgba(3,10,24,.22); text-decoration: none; backdrop-filter: blur(12px); }
.order-portal-link:hover { color: white; border-color: rgba(34,211,238,.65); background: rgba(18,48,82,.88); transform: translateY(-1px); }
.order-portal-link span:first-child { display: grid; min-width: 0; gap: 2px; overflow-wrap: anywhere; }
.order-portal-link strong { font-size: 14px; }
.order-portal-link small { color: #a9bad1; font-size: 11px; }
.order-portal-link span:last-child { display: grid; width: 34px; height: 34px; flex-shrink: 0; place-items: center; border-radius: 10px; color: var(--cyan-400); background: rgba(34,211,238,.1); font-size: 19px; }
.market-portal-link { border-color: rgba(217,236,170,.35); background: rgba(20,70,54,.7); }
.market-portal-link:hover { border-color: rgba(217,236,170,.75); background: rgba(24,99,75,.88); }
.market-portal-link span:last-child { color: #d9ecaa; background: rgba(217,236,170,.12); }
.order-portal-link.help-center-link { margin-top: 14px; margin-bottom: 0; }
.mobile-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.android-download-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid rgba(219,227,239,.9); border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: 0 18px 50px rgba(11,18,32,.08); }
.android-download-card img { width: 76px; height: 76px; }
.android-download-card img { padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: white; }
.android-download-card .eyebrow { font-size: 9px; letter-spacing: .1em; }
.android-download-card h2 { margin: 3px 0; color: var(--navy-950); font-size: 14px; line-height: 1.2; }
.android-download-card p:not(.eyebrow) { margin: 0 0 8px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.android-download-button { display: inline-flex; min-height: 32px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 9px; color: white; background: var(--blue-600); font-size: 11px; font-weight: 800; text-decoration: none; }
.android-download-button:hover { color: white; background: var(--blue-700); }
.ios-download-card { background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(226,244,235,.94)); }
.ios-download-button { background: #10253f; }
.ios-download-button:hover { background: #1b4268; }
.order-android-download-card { background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(232,241,253,.95)); }
.order-ios-download-card { background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(235,247,240,.95)); border-color: rgba(199,224,208,.95); }
.order-ios-download-button { background: #16324b; }
.order-ios-download-button:hover { background: #244d6d; }
@media  (min-width: 1101px) and (max-width: 1700px) {
.auth-brand {
        grid-template-columns: minmax(0, 1fr);
        align-content: center;
        gap: 24px;
        padding: 36px;
    }
.auth-brand h1 { max-width: 620px; font-size: 40px; }
.auth-brand .brand-mark { margin-bottom: 20px; }
.auth-brand-copy > p:last-child { font-size: 15px; }
.auth-brand-access { justify-self: start; }
}
.auth-card h1, .auth-card h2 { margin: 8px 0; color: var(--navy-950); font-size: 29px; }
.auth-card header > p:last-child, .auth-card > p { margin: 8px 0 24px; color: var(--muted); line-height: 1.55; }
form { display: grid; gap: 9px; }
label { margin-top: 8px; font-size: 13px; font-weight: 700; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
textarea {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
    color: var(--text);
    background: var(--surface);
    font: inherit;
    font-size: 13px;
}
textarea {
    min-height: 82px;
    padding-top: 10px;
    padding-bottom: 10px;
    resize: vertical;
}
select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    background: white;
    outline: none;
    font: inherit;
    font-size: 13px;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.required-marker { color: #d92d20; font-weight: 900; }
.required-label-invalid { color: #b42318; }
input.required-field-invalid:not([type="checkbox"]):not([type="radio"]),
select.required-field-invalid,
textarea.required-field-invalid {
    border-color: #f04438 !important;
    background-color: #fffafa;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, .12) !important;
}
input.required-field-invalid[type="checkbox"],
input.required-field-invalid[type="radio"] { outline: 2px solid #f04438; outline-offset: 2px; }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; min-width: 17px; min-height: 17px; flex: 0 0 17px; margin: 0; accent-color: var(--blue-600); }
input[readonly], textarea[readonly], select[readonly] { color: #475569; background: #f1f5f9; cursor: not-allowed; }
input:disabled, textarea:disabled, select:disabled { color: #64748b; background: #f1f5f9; cursor: not-allowed; opacity: .78; }
.label-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.label-row label { margin: 0; }
a { color: var(--blue-600); font-size: 13px; font-weight: 700; text-decoration: none; }
.check-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
button, .button-link {
    min-height: 42px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    color: white;
    background: var(--blue-600);
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
button:hover, .button-link:hover { background: var(--blue-700); }
button:disabled { cursor: wait; opacity: .72; }
.auth-card form > button, .login-card form > button { margin-top: 15px; }
.single-auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 20% 10%, rgba(37, 99, 235, .14), transparent 34rem), var(--canvas); }
.back-link { display: inline-block; margin-top: 22px; }
.validation, [data-valmsg-for] { color: var(--danger); font-size: 12px; }
.success-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--success); font-size: 24px; }
.danger { color: var(--danger); }
.password-requirements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    margin: 4px 0 12px;
    padding: 0;
    list-style: none;
}
@media  (max-width: 1100px) {
.auth-shell { grid-template-columns: 1fr; background: var(--canvas); }
.auth-brand { min-height: 260px; grid-template-columns: 1fr; gap: 26px; padding: 38px 24px; }
.auth-brand h1 { font-size: 36px; }
.auth-brand-copy > p:last-child, .brand-mark { display: none; }
.auth-brand-access { max-width: 620px; justify-self: center; }
.auth-card { margin: 24px auto; padding: 28px 22px; }
.auth-access-panel { margin: 24px auto; }
.auth-access-panel .auth-card { margin: 0; }
}
@media  (max-width: 520px) {
.mobile-download-grid { grid-template-columns: 1fr; }
.android-download-card { grid-template-columns: 76px minmax(0, 1fr); text-align: left; }
}
.login-version { margin-top:12px; color:var(--muted); font-size:11px; text-align:center; }
.brand-mark.small { width: 36px; height: 36px; margin: 0; border-radius: 10px; font-size: 12px; }
.page-header p:not(.eyebrow),
.page-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }
.product-dialog-header { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 18px; border-bottom: 1px solid var(--border); background: white; }
.product-dialog-header .dialog-header-close {
  position: relative;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #64748b;
  background: transparent;
  box-shadow: none;
}
.product-dialog-header .dialog-header-close::before,
.product-dialog-header .dialog-header-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.product-dialog-header .dialog-header-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.product-dialog-header .dialog-header-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.product-dialog-header .dialog-header-close:hover {
  color: #334155;
  border-color: #dbe3ef;
  background: #f1f5f9;
  transform: none;
}
.product-dialog-header .dialog-header-close:focus-visible {
  color: var(--blue-600);
  border-color: #93b4ff;
  background: #eff6ff;
  outline: 3px solid rgba(37, 99, 235, .16);
  outline-offset: 1px;
}
.stock-movement-dialog-body { padding: 22px; background: #f8fafc; }
.stock-movement-dialog-hint { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.global-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(11, 18, 32, .42);
    backdrop-filter: blur(7px);
}
.dialog-open { overflow: hidden; }
.dialog-open > .app-shell,
.dialog-open > .auth-shell,
.dialog-open > .single-auth {
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
}
.global-dialog-card {
    width: min(520px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 16px;
    background: white;
    box-shadow: 0 30px 90px rgba(11, 18, 32, .3);
    animation: dialog-enter .18s ease-out;
    outline: none;
}
.global-dialog-card header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 15px;
    border-bottom: 1px solid var(--border);
}
.global-dialog-card h2 { margin: 4px 0 0; color: var(--navy-950); font-size: 18px; }
.dialog-symbol {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #991b1b;
    background: #fee2e2;
    font-size: 20px;
    font-weight: 900;
}
[data-severity="warning"] .dialog-symbol { color: #92400e; background: #fef3c7; }
[data-severity="warning"] .eyebrow { color: #b45309; }
.dialog-close {
    width: 32px;
    min-height: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    color: var(--muted);
    background: white;
    font-size: 20px;
    line-height: 1;
}
.dialog-close:hover, .dialog-close:focus { color: var(--navy-950); background: #f1f5f9; }
.dialog-body { padding: 18px; color: #334155; font-size: 13px; line-height: 1.6; }
.dialog-body p { margin: 0; }
.dialog-body ul { margin: 0; padding-left: 20px; }
.dialog-body li + li { margin-top: 6px; }
.dialog-footnote { margin-top: 10px !important; color: var(--muted); font-size: 11px; }
.dialog-actions { display: flex; justify-content: flex-end; padding: 0 18px 18px; }
.dialog-actions .primary-action { margin: 0; }
.profile-dialog-card .dialog-body { padding-top: 4px; }
.profile-dialog-card h3 { margin: 0 0 4px; font-size: 14px; color: var(--navy-950); }
@keyframes dialog-enter {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.brand-mark.logo { overflow: hidden; background: #fff; padding: .3rem; }
.brand-mark.logo img { width: 100%; height: 100%; object-fit: contain; }
.table-text-action,
.cash-dialog-close {
    min-height: 34px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #cbd7e7;
    border-radius: 8px;
    color: #344054;
    background: #fff;
    font-size: 12px;
    font-weight: 750;
    box-shadow: none;
}
.table-text-action:hover,
.cash-dialog-close:hover {
    color: #175cd3;
    border-color: #84adff;
    background: #eff4ff;
}
.check-row{display:flex!important;align-items:center;gap:8px}
.check-row input{width:18px!important;height:18px!important}
.dashboard-page .page-header .eyebrow{margin:0 0 3px}
.dashboard-page .page-header .eyebrow{font-size:10px;line-height:1.2}
@media (min-width:1000px) and (max-height:800px){
.dashboard-page>.page-header .eyebrow{display:none}
}
