/* ==========================================================================
   Passvault "Blueprint" — Lagom2 brand overrides
   Loaded automatically by Lagom2 (includes/head.tpl) after theme.css from
   core/styles/default/assets/css/custom.css — theme files untouched.
   Palette + type match passvault.me (mu-plugins/passvault-blueprint).
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Chivo:wght@400;500;600;700;800&family=Chivo+Mono:wght@400;500&display=swap');

:root {
    /* Brand tokens */
    --pv-navy: #0f2c52;
    --pv-navy-2: #0a1e3a;
    --pv-navy-3: #163b6b;
    --pv-cyan: #6fc6ff;
    --pv-cyan-2: #a9d8f7;
    --pv-amber: #f5b63f;
    --pv-paper: #f6f8fb;
    --pv-ink: #13213a;
    --pv-line: #d5dde8;

    /* Lagom tokens → Blueprint */
    --font-family-base: 'Chivo', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-family-monospace: 'Chivo Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --brand-primary: #0f2c52;
    --brand-primary-darker: #0a1e3a;
    --brand-primary-lighter: #163b6b;
    --brand-primary-lighter-2: #b9dcf5;
    --brand-primary-lighter-3: #dcecfa;
    --brand-primary-lighter-4: #eef5fb;
    --brand-primary-gradient-start: #0f2c52;
    --brand-primary-gradient-end: #0f2c52;
    --brand-primary-gradient-v: linear-gradient(0deg, #0f2c52 0%, #0f2c52 100%);
    --brand-primary-gradient-h: linear-gradient(90deg, #0f2c52 0%, #0f2c52 100%);

    --brand-secondary: #0f2c52;
    --brand-secondary-darker: #0a1e3a;
    --brand-secondary-lighter: #5b7392;
    --brand-secondary-gradient-start: #0a1e3a;
    --brand-secondary-gradient-end: #0f2c52;
    --brand-secondary-gradient-v: linear-gradient(0deg, #0f2c52 0%, #0a1e3a 100%);
    --brand-secondary-gradient-h: linear-gradient(90deg, #0a1e3a 0%, #0f2c52 100%);

    --brand-info: #1a6fb5;
    --brand-info-darker: #145a93;
    --brand-info-lighter: #5d9bd1;
    --brand-info-lighter-2: #c6def2;
    --brand-info-lighter-3: #e1eef8;
    --brand-info-gradient-start: #1a6fb5;
    --brand-info-gradient-end: #1a6fb5;
    --brand-info-gradient-v: linear-gradient(0deg, #1a6fb5 0%, #1a6fb5 100%);
    --brand-info-gradient-h: linear-gradient(90deg, #1a6fb5 0%, #1a6fb5 100%);

    --gray-darker: #13213a;
    --gray-icons-hover: #0f2c52;
    --link-color: #0f2c52;
    --text-heading-color: #0f2c52;

    --border-radius-xs: 2px;
    --border-radius-sm: 3px;
    --border-radius-base: 4px;
    --border-radius-lg: 6px;
    --border-radius-xlg: 8px;

    --body-bg: #f6f8fb;
}

/* --- Light global polish (every client-area page) ------------------------ */
body.lagom { font-family: var(--font-family-base); -webkit-font-smoothing: antialiased; }
.lagom h1, .lagom h2, .lagom h3, .lagom h4, .lagom .h1, .lagom .h2, .lagom .h3, .lagom .h4,
.lagom .page-header-title, .lagom .login-title { font-family: var(--font-family-base); font-weight: 700; letter-spacing: -0.01em; }
.lagom .app-nav-header { background: #fff; border-bottom: 1px solid var(--pv-line); }
.lagom .app-nav-header .logo img { height: 36px; }
.lagom .btn-primary, .lagom .btn-primary:not(:disabled):not(.disabled) { background-image: none; }
.lagom code, .lagom kbd, .lagom pre { font-family: var(--font-family-monospace); }
.lagom .main-footer { border-top: 1px solid var(--pv-line); }

/* --- Blueprint login (page option core/pages/login/blueprint) ------------- */
body.page-login.page-type-full .app-main { margin: 0; }
body.page-login.page-type-full .app-main .main-body { padding: 0; }

.pv-login { display: flex; min-height: 100vh; background: var(--pv-paper); font-family: var(--font-family-base); color: var(--pv-ink); }
.pv-mono { font-family: var(--font-family-monospace); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }

/* Sheet (left) */
.pv-sheet {
    position: relative; flex: 0 0 46%; max-width: 640px;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 40px 48px 112px; color: #fff; overflow: hidden;
    background-color: var(--pv-navy);
    background-image:
        linear-gradient(rgba(111,198,255,.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111,198,255,.11) 1px, transparent 1px),
        linear-gradient(rgba(111,198,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111,198,255,.05) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    background-position: -1px -1px;
}
.pv-sheet::after { content: ""; position: absolute; top: 16px; right: 16px; bottom: 16px; left: 16px; border: 1px solid rgba(111,198,255,.38); pointer-events: none; }
.pv-sheet-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pv-sheet-logo img { display: block; height: 44px; width: auto; }
.pv-sheet-no { color: var(--pv-cyan); white-space: nowrap; }
.pv-sheet-body { position: relative; z-index: 1; margin: auto 0; padding: 48px 0; }
.pv-sheet-title { margin: 0 0 28px; color: #fff; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.pv-spec { list-style: none; margin: 0 0 36px; padding: 0; max-width: 460px; }
.pv-spec li { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(111,198,255,.28); }
.pv-spec li:last-child { border-bottom: 1px solid rgba(111,198,255,.28); }
.pv-spec .pv-mono { flex: 0 0 34px; padding-top: 3px; color: var(--pv-cyan); letter-spacing: 0.04em; }
.pv-spec p { margin: 0; font-size: 15px; line-height: 1.5; color: #dbe7f3; }
.pv-drawing { display: block; width: 280px; max-width: 100%; height: auto; }
.pv-titleblock { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(111,198,255,.5); background: rgba(10,30,58,.65); }
.pv-titleblock div { padding: 10px 12px; border-right: 1px solid rgba(111,198,255,.5); color: #fff; font-size: 11px; letter-spacing: 0.1em; white-space: nowrap; }
.pv-titleblock div:last-child { border-right: 0; }
.pv-titleblock span { display: block; margin-bottom: 4px; color: var(--pv-cyan); font-size: 9px; }

/* Panel (right) */
.pv-panel { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 32px 24px; }
.pv-form { width: 100%; max-width: 420px; margin: auto; }
.pv-form-head { margin-bottom: 28px; }
.pv-title { margin: 0 0 6px; color: var(--pv-navy); font-size: 32px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.pv-lede { margin: 0; color: #5b6b82; font-size: 15px; line-height: 1.5; }
.pv-form .alert { border-radius: 4px; }

.pv-fields .form-group { margin-bottom: 20px; }
.pv-fields label { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--pv-navy); font-size: 13px; font-weight: 600; text-transform: none; }
.pv-fields label .pv-mono { color: #7a8aa3; font-size: 10px; }
.pv-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.pv-label-row a { color: var(--pv-navy); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.pv-fields .form-control, .pv-fields .form-control.input-lg {
    height: 48px; padding: 0 14px; border: 1px solid var(--pv-line); border-radius: 4px;
    background: #fff; box-shadow: none; color: var(--pv-ink); font-size: 15px; font-family: var(--font-family-base);
}
.pv-fields .form-control::placeholder { color: #a3aec0; }
.pv-fields .form-control:focus { border-color: var(--pv-navy); box-shadow: 0 0 0 3px rgba(111,198,255,.45); outline: 0; }
.pv-remember .checkbox { margin: 0; color: #3f4f68; font-size: 14px; }
.pv-fields .login-captcha { margin-bottom: 20px; }
.pv-submit.btn, .pv-submit.btn:not(:disabled):not(.disabled) {
    height: 50px; border-radius: 4px; background: var(--pv-navy) !important; background-image: none !important;
    border-color: var(--pv-navy) !important; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0.01em; box-shadow: none;
}
.pv-submit.btn:hover, .pv-submit.btn:focus, .pv-submit.btn:active { background: var(--pv-navy-2) !important; border-color: var(--pv-navy-2) !important; box-shadow: 0 0 0 3px rgba(111,198,255,.45); }

.pv-note { position: relative; margin: 28px 0 0; padding: 16px 16px 14px 18px; border-left: 3px solid var(--pv-amber); border-radius: 0 4px 4px 0; background: #fff7e6; }
.pv-note-tag { position: absolute; top: -9px; left: 12px; padding: 2px 6px; border-radius: 2px; background: var(--pv-amber); color: #3a2a06; font-size: 9px; }
.pv-note p { margin: 0; color: #4a3b14; font-size: 13px; line-height: 1.55; }
.pv-note code { padding: 1px 5px; border-radius: 3px; background: rgba(255,255,255,.75); color: var(--pv-navy); font-family: var(--font-family-monospace); font-size: 12px; }
.pv-register { margin: 24px 0 0; color: #5b6b82; font-size: 14px; text-align: center; }
.pv-register a { color: var(--pv-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pv-panel-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 40px; color: #7a8aa3; font-size: 10px; }
.pv-panel-foot a { color: #7a8aa3; }
.pv-panel-foot a:hover { color: var(--pv-navy); }

@media (max-width: 991px) {
    .pv-login { flex-direction: column; }
    .pv-sheet { flex: none; max-width: none; padding: 28px 24px; }
    .pv-sheet::after { top: 10px; right: 10px; bottom: 10px; left: 10px; }
    .pv-sheet-body { padding: 28px 0 8px; }
    .pv-sheet-title { font-size: 26px; margin-bottom: 20px; }
    .pv-drawing, .pv-titleblock { display: none; }
    .pv-panel { padding: 32px 20px 20px; }
}
@media (max-width: 575px) {
    .pv-sheet-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .pv-sheet-logo img { height: 36px; }
    .pv-spec { display: none; }
    .pv-sheet-body { padding: 20px 0 4px; }
    .pv-title { font-size: 28px; }
}
