@charset "utf-8";

/* Login page only: intentionally separate from MasterStyle.css */
:root {
    --navy: #102a43;
    --navy-deep: #0a1c2e;
    --blue: #1769aa;
    --blue-bright: #287fd1;
    --text: #172b4d;
    --muted: #697b91;
    --line: #dce5ef;
    --surface: #ffffff;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    color: var(--text);
    background: #eef3f8;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(330px, 0.92fr) minmax(460px, 1.08fr);
    background: var(--surface);
}

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    overflow: hidden;
    padding: 42px clamp(32px, 5vw, 76px) 30px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 88%, rgba(48, 135, 211, .28), transparent 34%),
        radial-gradient(circle at 95% 8%, rgba(83, 165, 227, .22), transparent 29%),
        linear-gradient(145deg, #163d60 0%, #102a43 48%, #091b2c 100%);
}

.brand-panel::before,
.brand-panel::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    pointer-events: none;
}
.brand-panel::before { width: 460px; height: 460px; right: -245px; bottom: -150px; }
.brand-panel::after { width: 330px; height: 330px; right: -180px; bottom: -85px; }

.brand-top, .brand-message, .brand-footer { position: relative; z-index: 1; }
.brand-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand-logo {
    display: flex; align-items: center; justify-content: center;
    width: 145px; height: 64px; padding: 7px 12px;
    background: #fff; border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.brand-logo img { max-width: 100%; max-height: 48px; object-fit: contain; }
.brand-tag { color: #c2d8eb; font-size: 10px; font-weight: 700; letter-spacing: 2px; }

.brand-message { max-width: 500px; margin: 54px 0 72px; }
.eyebrow {
    display: flex; align-items: center; gap: 9px;
    font-size: 10px; line-height: 1.4; font-weight: 800; letter-spacing: 1.8px;
}
.status-dot {
    display: inline-block; width: 7px; height: 7px; flex: 0 0 7px;
    border-radius: 50%; background: #57d6b0;
    box-shadow: 0 0 0 4px rgba(87,214,176,.12);
}
.brand-message h1 {
    margin: 24px 0 18px; color: #fff;
    font-size: clamp(34px, 4.2vw, 55px); line-height: 1.12;
    font-weight: 650; letter-spacing: -1.8px;
}
.brand-message h1 span { color: #83c6ff; }
.brand-message > p {
    max-width: 390px; margin: 0; color: #c4d5e4;
    font-size: 15px; line-height: 1.8;
}
.trust-list { display: grid; gap: 22px; margin-top: 43px; }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-icon {
    display: grid; place-items: center; width: 34px; height: 34px;
    border: 1px solid rgba(255,255,255,.2); border-radius: 10px;
    color: #83c6ff; font-size: 15px; background: rgba(255,255,255,.06);
}
.trust-item strong { display: block; color: #fff; font-size: 13px; font-weight: 650; }
.trust-item small { display: block; margin-top: 4px; color: #afc4d7; font-size: 11px; }
.brand-footer { color: #9bb3c8; font-size: 11px; letter-spacing: .2px; }

.form-panel {
    display: flex; flex-direction: column; justify-content: center;
    min-width: 0; padding: 38px clamp(28px, 6vw, 90px) 22px;
    background: #fff;
}
.login-content { width: 100%; max-width: 420px; margin: 0 auto; }
.welcome-icon {
    display: grid; place-items: center; width: 48px; height: 48px;
    margin-bottom: 24px; border-radius: 14px;
    color: #1769aa; background: #eaf4ff;
}
.welcome-icon svg { width: 25px; height: 25px; fill: currentColor; }
.section-heading { margin-bottom: 28px; }
.form-eyebrow { margin-bottom: 10px; color: #287fd1; }
.section-heading h2 { margin: 0; color: #132d4a; font-size: 27px; line-height: 1.25; font-weight: 700; letter-spacing: -.6px; }
.section-heading p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.field-group { margin: 0 0 19px; }
.field-group label { display: block; margin-bottom: 8px; color: #263c56; font-size: 12px; font-weight: 700; }
.input-wrap { position: relative; }
.field-icon {
    position: absolute; top: 50%; left: 14px; display: flex;
    width: 18px; height: 18px; transform: translateY(-50%);
    color: #8194a9; pointer-events: none;
}
.field-icon svg { width: 100%; height: 100%; fill: currentColor; }
.login-input {
    display: block; width: 100%; height: 48px; padding: 0 14px 0 43px;
    color: #172b4d; font-family: inherit; font-size: 13px;
    background: #fbfdff; border: 1px solid #d8e2ed; border-radius: 9px;
    outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.login-input::placeholder { color: #9aa9b9; }
.login-input:focus {
    border-color: #398bd2; background: #fff;
    box-shadow: 0 0 0 3px rgba(40,127,209,.12);
}
.field-group input[type="text"]:not(.login-input) { max-width: 100%; }
.text-error { display: block; margin-top: 6px; color: #c0392b; font-size: 11px; line-height: 1.45; }
.button-row { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; margin-top: 25px; }
.btn-primary, .btn-secondary, .btn-admin {
    min-height: 46px; padding: 0 18px; border: 0; border-radius: 9px;
    font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
    color: #fff; background: linear-gradient(110deg, #1769aa, #287fd1);
    box-shadow: 0 7px 16px rgba(23,105,170,.2);
}
.btn-primary:hover { background: linear-gradient(110deg, #12598f, #1c70bd); box-shadow: 0 9px 20px rgba(23,105,170,.26); transform: translateY(-1px); }
.btn-secondary { color: #36516d; background: #edf3f8; border: 1px solid #dce5ee; }
.btn-secondary:hover { background: #e2ebf4; }
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-admin:focus-visible { outline: 3px solid rgba(40,127,209,.3); outline-offset: 2px; }

.admin-section {
    margin-top: 27px; padding: 17px; border: 1px solid #e1e9f1;
    border-radius: 12px; background: #f8fafc;
}
.admin-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.admin-mark {
    display: grid; place-items: center; width: 34px; height: 34px;
    border-radius: 10px; color: #1769aa; background: #e4f1fd; font-size: 19px;
}
.admin-heading strong { display: block; color: #263c56; font-size: 12px; }
.admin-heading small { display: block; margin-top: 4px; color: #7b8b9d; font-size: 10px; }
.admin-labels { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.admin-value { display: inline-block; max-width: 100%; padding: 5px 8px; border-radius: 5px; color: #fff; background: #3e5267; font-size: 11px; overflow-wrap: anywhere; }
.admin-select { margin-bottom: 10px; }
.admin-select select, .admin-select input, .admin-select button {
    font-family: inherit !important; font-size: 12px !important;
}
.admin-select .ajax__combobox_textboxcontainer input {
    width: 100% !important; height: 38px !important; padding: 0 10px !important;
    color: #263c56 !important; background: #fff !important; border: 1px solid #d8e2ed !important;
    border-radius: 7px 0 0 7px !important; box-sizing: border-box !important;
}
.admin-select .ajax__combobox_buttoncontainer button {
    height: 38px !important; top: 0 !important; color: #fff !important;
    background: #287fd1 !important; border: 1px solid #287fd1 !important;
    border-radius: 0 7px 7px 0 !important;
}
.admin-select .ajax__combobox_itemlist { z-index: 1000; font-family: inherit !important; font-size: 12px !important; }
.btn-admin { width: 100%; min-height: 40px; color: #fff; background: #344b62; }
.btn-admin:hover { background: #263c50; }
.otp-section .otp-actions { margin: -5px 0 20px; }
.otp-section .otp-actions img { object-fit: contain; }
.otp-input-row { display: flex; align-items: center; gap: 10px; }
.otp-input-row .login-input { padding-left: 13px; }
.resend-button { display: inline-flex; align-items: center; justify-content: center; max-width: 32px; max-height: 32px; object-fit: contain; }
.otp-hint { display: block; margin-top: 7px; color: #75869a; font-size: 11px; }
.btn-full { width: 100%; margin-top: 7px; }
.otp-error { margin-top: 12px; }
.security-note {
    display: flex; align-items: flex-start; gap: 8px; margin-top: 25px;
    padding-top: 17px; border-top: 1px solid #edf1f5;
    color: #7b8b9d; font-size: 10px; line-height: 1.6;
}
.lock-mini { font-size: 12px; }
.page-footer {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    width: 100%; max-width: 520px; margin: 28px auto 0;
    color: #91a0b0; font-size: 10px;
}
.footer-secure { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.mobile-brand { display: none; }

@media (max-width: 900px) {
    .login-page { grid-template-columns: minmax(270px, .8fr) minmax(420px, 1.2fr); }
    .brand-panel { padding: 32px 30px 24px; }
    .brand-tag { letter-spacing: 1px; }
    .form-panel { padding: 32px 34px 22px; }
    .brand-message h1 { font-size: 39px; }
}
@media (max-width: 700px) {
    .login-page { display: block; min-height: 100vh; }
    .brand-panel { display: none; }
    .form-panel { min-height: 100vh; justify-content: flex-start; padding: 24px 22px 18px; }
    .mobile-brand { display: flex; align-items: center; gap: 12px; margin: 0 auto 36px; width: 100%; max-width: 420px; color: #183c5b; font-size: 17px; font-weight: 800; }
    .mobile-brand img { width: 100px; height: 45px; object-fit: contain; }
    .login-content { margin: 0 auto; }
    .welcome-icon { margin-bottom: 20px; }
    .section-heading h2 { font-size: 25px; }
    .page-footer { margin-top: 28px; }
}
@media (max-width: 390px) {
    .form-panel { padding-left: 16px; padding-right: 16px; }
    .button-row { grid-template-columns: minmax(0, 1fr) 78px; }
    .btn-primary, .btn-secondary { padding-left: 10px; padding-right: 10px; }
    .admin-section { padding: 13px; }
}
