:root {
    --auth-primary: #075ba7;
    --auth-deep: #073b74;
    --auth-accent: #f59e0b;
    --auth-ink: #18202a;
    --auth-muted: #667085;
    --auth-border: #d9e2ec;
    --auth-soft: #eaf5ff;
}

* { box-sizing: border-box; }

body.o360-auth-body {
    min-height: 100vh;
    margin: 0;
    color: var(--auth-ink);
    background: #eef3f7;
    font-family: "Segoe UI", Arial, sans-serif;
}

.o360-auth-header {
    min-height: 68px;
    padding: 10px clamp(18px, 4vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #fff;
    background: #071d37;
    border-bottom: 3px solid var(--auth-accent);
}

.o360-auth-header nav,
.o360-auth-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.o360-auth-header a { color: #fff; text-decoration: none; }
.o360-auth-header .btn-outline-light { min-height: 38px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .54); border-radius: 6px; }
.o360-auth-product { font-weight: 750; font-size: 1.05rem; }
.o360-auth-product img { width: 42px; height: 42px; border-radius: 7px; object-fit: cover; }
.o360-auth-product span { display: block; color: #fff; white-space: nowrap; }

.o360-auth-layout {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(34px, 6vw, 76px) 0;
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(520px, 1.18fr);
    gap: clamp(34px, 6vw, 82px);
    align-items: stretch;
}

.o360-auth-layout-compact { max-width: 1040px; }
.o360-auth-intro {
    min-height: 560px;
    padding: clamp(34px, 4vw, 52px);
    color: #fff;
    background: #071d37;
    border-left: 5px solid var(--auth-accent);
    border-radius: 8px;
}
.o360-auth-eyebrow, .o360-auth-kicker { color: var(--auth-primary); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.o360-auth-intro .o360-auth-eyebrow { color: #f8b733; }
.o360-auth-intro h1 { max-width: 620px; margin: 12px 0 18px; font-size: 3.25rem; line-height: 1.04; letter-spacing: 0; overflow-wrap: anywhere; }
.o360-auth-intro h1 { color: #fff; }
.o360-auth-intro > p { max-width: 560px; color: #c8d6e4; font-size: 1.06rem; line-height: 1.7; }

.o360-auth-steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 12px; }
.o360-auth-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; color: #aebfd0; }
.o360-auth-steps li > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; font-weight: 800; background: rgba(255,255,255,.07); }
.o360-auth-steps strong, .o360-auth-steps small { display: block; }
.o360-auth-steps small { margin-top: 2px; line-height: 1.35; }
.o360-auth-steps .is-current { color: #fff; }
.o360-auth-steps .is-current > span { color: #fff; background: var(--auth-primary); border-color: var(--auth-primary); }
.o360-auth-steps .is-complete > span { color: var(--auth-deep); background: var(--auth-soft); border-color: rgba(7, 91, 167, .22); }

.o360-auth-form-panel {
    padding: clamp(24px, 4vw, 42px);
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    box-shadow: none;
}

.o360-auth-form-heading { margin-bottom: 24px; display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.o360-auth-form-heading h2 { margin: 5px 0 0; font-size: 1.55rem; }
.o360-auth-secure { color: var(--auth-muted); font-size: .78rem; white-space: nowrap; }
.o360-auth-form-panel form.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.o360-auth-form-panel form.row > * { min-width: 0; padding: 0; }
.o360-auth-form-panel .col-12 { grid-column: 1 / -1; }
.o360-auth-form-panel .form-label { display: block; margin-bottom: 7px; font-weight: 700; font-size: .9rem; }
.o360-auth-form-panel .form-label span { color: var(--auth-muted); font-size: .76rem; font-weight: 500; }
.o360-auth-form-panel .form-control, .o360-auth-form-panel .form-select { display: block; width: 100%; min-height: 48px; padding: 10px 12px; color: var(--auth-ink); background: #fff; border: 1px solid var(--auth-border); border-radius: 6px; font: inherit; }
.o360-auth-form-panel .form-control-lg { min-height: 54px; font-size: 1.05rem; }
.o360-auth-form-panel .form-control:focus, .o360-auth-form-panel .form-select:focus { border-color: var(--auth-primary); box-shadow: 0 0 0 3px rgba(7, 91, 167, .12); }
.o360-auth-form-panel .btn-primary { background: var(--auth-primary); border-color: var(--auth-primary); border-radius: 6px; }
.o360-auth-form-panel .btn-primary:hover { background: var(--auth-deep); border-color: var(--auth-deep); }
.o360-auth-form-panel .btn { min-height: 48px; padding: 10px 16px; color: #fff; border: 1px solid transparent; font: inherit; font-weight: 750; cursor: pointer; }
.o360-auth-form-panel .btn-outline-primary { color: var(--auth-primary); background: #fff; border-color: var(--auth-primary); border-radius: 6px; }
.o360-auth-form-panel .btn-outline-primary:hover { color: #fff; background: var(--auth-primary); }
.o360-auth-form-panel .btn:disabled { color: #6f7c8b; background: #e9eef3 !important; border-color: #d7e0e8 !important; cursor: not-allowed; }
.o360-auth-form-panel .alert { margin: 0 0 20px; padding: 13px 15px; border: 1px solid; border-radius: 6px; line-height: 1.5; }
.o360-auth-form-panel .alert-info { color: #0b4f7a; background: #edf8ff; border-color: #b9e1f8; }
.o360-auth-form-panel .alert-success { color: #17633a; background: #effaf3; border-color: #b9e1c8; }
.o360-auth-form-panel .alert-warning { color: #714d00; background: #fff8e6; border-color: #f0d68d; }
.o360-auth-form-panel .alert-danger { color: #8a2430; background: #fff1f3; border-color: #efbcc4; }
.o360-auth-form-panel .text-muted { color: var(--auth-muted); }
.o360-auth-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.o360-auth-actions a { color: var(--auth-primary); font-weight: 650; text-decoration: none; }
.o360-auth-note { margin: 26px 0 0; padding-top: 18px; color: var(--auth-muted); font-size: .83rem; line-height: 1.55; border-top: 1px solid var(--auth-border); }
.o360-code-input { max-width: 330px; text-transform: uppercase; font-family: Consolas, monospace; font-size: 1.35rem; letter-spacing: 0; }

.o360-auth-signin { align-items: center; min-height: calc(100vh - 68px); }
.o360-auth-signin .o360-auth-intro { display: flex; flex-direction: column; justify-content: center; }
.o360-single-form { display: grid; gap: 12px; }
.o360-single-form .btn { width: 100%; margin-top: 4px; }
.o360-alert-detail { display: block; margin-top: 5px; font-size: .88rem; font-weight: 400; }
.o360-auth-trust { display: grid; gap: 1px; margin-top: 30px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.16); border-radius: 6px; overflow: hidden; }
.o360-auth-trust > div { padding: 14px 16px; background: rgba(255,255,255,.06); }
.o360-auth-trust strong, .o360-auth-trust span { display: block; }
.o360-auth-trust strong { color: #fff; font-size: .9rem; }
.o360-auth-trust span { margin-top: 3px; color: #b7c7d6; font-size: .82rem; line-height: 1.45; }
.o360-auth-support { display: grid; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--auth-border); }
.o360-auth-support p { margin: 0 0 4px; color: var(--auth-muted); font-size: .88rem; line-height: 1.55; }
.o360-auth-support a { width: fit-content; color: var(--auth-primary); font-size: .88rem; font-weight: 700; text-decoration: none; }
.o360-auth-form-panel a:focus-visible, .o360-auth-header a:focus-visible, .o360-auth-form-panel button:focus-visible { outline: 3px solid #5cb8f3; outline-offset: 3px; }

@media (max-width: 900px) {
    .o360-auth-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 34px; }
    .o360-auth-intro { min-height: 0; }
    .o360-auth-intro h1 { font-size: 2.65rem; }
    .o360-auth-signin { min-height: auto; }
    .o360-auth-steps { grid-template-columns: repeat(3, 1fr); }
    .o360-auth-steps li { grid-template-columns: 34px 1fr; }
    .o360-auth-steps small { display: none; }
}

@media (max-width: 620px) {
    .o360-auth-header { align-items: flex-start; }
    .o360-auth-header nav > a:first-child { display: none; }
    .o360-auth-layout { width: min(100% - 24px, 720px); padding: 26px 0 40px; }
    .o360-auth-intro h1 { font-size: 2rem; }
    .o360-auth-steps { grid-template-columns: 1fr; margin-top: 24px; }
    .o360-auth-steps li { display: none; }
    .o360-auth-steps li.is-current { display: grid; }
    .o360-auth-form-heading { display: block; }
    .o360-auth-form-panel form.row { grid-template-columns: 1fr; }
    .o360-auth-form-panel .col-12 { grid-column: auto; }
    .o360-auth-secure { display: inline-block; margin-top: 9px; }
    .o360-auth-actions { align-items: stretch; flex-direction: column; }
    .o360-auth-actions .btn { width: 100%; }
}
