
:root {
    --cdot-blue: #003366;
    --cdot-blue-mid: #0a4a7a;
    --cdot-blue-dark: #001a33;
    --accent: #f0a500;
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #1a2a3a;
    --muted: #5a6a7a;
    --border: #d0d8e0;
    --success: #0a7a3e;
    --error: #c0392b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }


/* ========== Auth split layout (login / register) ========== */
.split-container {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 100vh;
    width: 100%;
}
.left-panel {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 38px 38px 32px;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(520px 360px at 14% 9%, #2f7fd6 0%, rgba(47,127,214,.45) 38%, transparent 70%),
        radial-gradient(700px 500px at 100% 100%, #0a4a8f 0%, transparent 65%),
        linear-gradient(160deg, #0b3f7c 0%, #062f5e 55%, #031d3d 100%);
}
.left-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    pointer-events: none;
    background: repeating-radial-gradient(circle at 14% 9%, transparent 0 46px, rgba(255,255,255,.55) 47px 48px);
}
.left-panel::after {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: linear-gradient(#f5a000, #fff 50%, #1a9a4a);
    z-index: 2;
}
.left-panel > * { position: relative; z-index: 1; }
.brand-row { display: flex; align-items: center; gap: 16px; }
.logo-svg {
    width: 76px; height: 76px; flex: none; border-radius: 4px;
    box-shadow: 0 0 0 3px #fff, 0 0 0 9px rgba(255,255,255,.18), 0 0 48px 10px rgba(110,180,255,.65);
}
.brand-text { min-width: 0; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: .4px; line-height: 1.2; }
.brand-org { font-size: 25px; line-height: 1.35; color: #eaf2fc; margin-top: 2px; }
.left-panel h1 { font-size: 32px; line-height: 1.2; margin: 40px 0 22px; font-weight: 700; }
.lead, .left-panel .lead { max-width: 340px; line-height: 1.6; font-size: 15px; color: #d5e4f7; margin: 0 0 30px; }
.feature-card {
    display: flex; gap: 16px; align-items: center;
    padding: 16px 18px; margin-bottom: 14px; border-radius: 12px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
}
.feature-card .ic {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 18px; flex: none;
}
.feature-card strong { display: block; font-size: 15px; margin-bottom: 3px; }
.feature-card small, .feature-desc { font-size: 13px; color: #cfe0f5; line-height: 1.4; }
.footer-tag { margin-top: auto; padding-top: 28px; font-size: 12px; color: #b8cdea; }

/* Right panel – form area */
.right-panel {
    flex: 1 1 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 2rem 1.5rem;
}
.right-panel-inner {
    width: 100%;
    max-width: 720px;
}
.tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.75rem;
}
.tab {
    text-decoration: none;
    color: var(--muted);
    padding-bottom: 0.65rem;
    font-weight: 500;
    font-size: 1rem;
}
.tab.active {
    color: var(--cdot-blue);
    border-bottom: 3px solid var(--accent);
    margin-bottom: -2px;
    font-weight: 600;
}

.auth-form .form-group { margin-bottom: 1.15rem; }
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.req { color: #e74c3c; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password],
select, textarea {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border 0.2s, box-shadow 0.2s;
    background: #fff;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--cdot-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.12);
}
.input-icon { position: relative; }
.input-icon .icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.95rem;
    pointer-events: none;
}
.input-icon input { padding-left: 2.35rem; }

.info-box {
    background: #eef6fc;
    border-left: 4px solid #3b82c4;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    color: #1a5276;
    line-height: 1.45;
}

.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-input { flex: 1; min-width: 0; }
.captcha-display {
    display: grid;
    place-items: center;
    height: 46px;
    background: #d8efd8;
    color: #1b5e20;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.05rem;
    min-width: 88px;
    text-align: center;
    user-select: none;
    flex-shrink: 0;
}
.btn-refresh {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--muted);
}
.btn-refresh:hover { background: #f0f4f8; color: var(--cdot-blue); }

.btn-primary {
    width: 100%;
    background: var(--cdot-blue);
    color: #fff;
    border: none;
    padding: 0.9rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.35rem;
    letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--cdot-blue-dark); }
.btn-secondary {
    background: #fff;
    color: var(--cdot-blue);
    border: 1px solid var(--cdot-blue);
    padding: 0.7rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.btn-secondary:hover { background: #f0f4f8; }
.security-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }
.alert-success { background: #e8f8ef; color: #0a7a3e; border: 1px solid #b7e4c7; }

@media (max-width: 900px) {
    .split-container { flex-direction: column; }
    .left-panel {
        flex: none;
        max-width: 100%;
        padding: 1.75rem 1.5rem;
        gap: 1.1rem;
    }
    .left-panel h1 { font-size: 1.45rem; }
    .right-panel { padding: 1.5rem 1.25rem 2rem; align-items: flex-start; }
    .right-panel-inner { max-width: 100%; }
    .form-row { grid-template-columns: 1fr; }
}


.otp-card { background: #fff; border-radius: 12px; padding: 2.5rem; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.otp-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.otp-card h2 { margin-bottom: 0.5rem; }
.masked { margin: 1rem 0; color: var(--muted); }
.otp-inputs { display: flex; gap: 8px; justify-content: center; margin: 1.2rem 0; }
.otp-digit { width: 48px; height: 52px; text-align: center; font-size: 1.4rem; font-weight: 600; border: 2px solid var(--border); border-radius: 8px; }
.otp-digit:focus { border-color: var(--cdot-blue); }
.resend { font-size: 0.85rem; color: var(--muted); margin: 1rem 0; }
.resend a { color: var(--cdot-blue); }

.app-body { background: #eef2f6; }
.app-header {
    background: var(--cdot-blue); color: #fff; display: flex; justify-content: space-between;
    align-items: center; padding: 0.7rem 1.5rem;
}
.header-left { display: flex; gap: 12px; align-items: center; }
.header-left .sub { font-size: 0.65rem; opacity: 0.85; }
.header-right { display: flex; align-items: center; gap: 1.2rem; font-size: 0.85rem; text-align: right; }
.btn-logout { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.5); padding: 0.35rem 0.8rem; border-radius: 4px; }

.app-layout { display: flex; min-height: calc(100vh - 70px); }
.sidebar {
    width: 240px; background: #fff; border-right: 1px solid var(--border); padding: 1.5rem 1rem;
    display: flex; flex-direction: column;
}
.sidebar h3 { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.steps { list-style: none; counter-reset: step; }
.steps li {
    counter-increment: step; padding: 0.6rem 0.8rem; margin-bottom: 0.3rem; border-radius: 6px;
    font-size: 0.88rem; position: relative; padding-left: 2.2rem;
}
.steps li::before {
    content: counter(step); position: absolute; left: 0.5rem; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; border-radius: 50%; background: #dde3ea; color: #555;
    display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600;
}
.steps li.active { background: #e8f0fe; color: var(--cdot-blue); font-weight: 600; }
.steps li.active::before { background: var(--cdot-blue); color: #fff; }
.steps li.done::before { content: '✓'; background: #27ae60; color: #fff; }
.sidebar-footer { margin-top: auto; font-size: 0.75rem; color: var(--muted); padding-top: 1.5rem; }

.main-content { flex: 1; padding: 1.5rem 2rem; overflow-y: auto; }
.main-content h2 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.main-content h2 small { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.mandatory-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; }

.form-section { background: #fff; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.form-section h3 { font-size: 1.05rem; color: var(--cdot-blue); margin-bottom: 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; }
.form-group.full { grid-column: 1 / -1; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.2rem 0; }
fieldset { border: 1px solid var(--border); border-radius: 6px; padding: 1rem; }
fieldset legend { font-size: 0.85rem; font-weight: 600; padding: 0 0.4rem; }
fieldset input { margin-bottom: 0.5rem; }

.pq-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.pq-table th { background: var(--cdot-blue); color: #fff; padding: 0.65rem 0.8rem; text-align: left; }
.pq-table td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--border); }
.pq-table tr:nth-child(even) { background: #f8fafc; }
.pq-table label { margin-right: 0.8rem; font-weight: 400; }

.form-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 1.5rem; }

.smtp-card { max-width: 640px; margin: 2rem auto; background: #fff; border-radius: 8px; padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.smtp-card h2 { color: var(--cdot-blue); margin-bottom: 1.5rem; }
.radio-row { display: flex; gap: 1.5rem; margin-top: 0.4rem; }

@media (max-width: 900px) {
    .split-container { flex-direction: column; }
    .left-panel { flex: none; }
    .form-grid, .form-row, .form-row-2 { grid-template-columns: 1fr; }
    .app-layout { flex-direction: column; }
    .sidebar { width: 100%; }
}


/* Admin report */
.admin-wrap { max-width: 98%; width: 100%; margin: 1rem auto; padding: 0 0.75rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; background: #fff; table-layout: auto; }
.admin-table th { background: var(--cdot-blue); color: #fff; padding: 0.6rem 0.7rem; text-align: left; white-space: nowrap; }
.admin-table td { padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table tr:nth-child(even) { background: #f8fafc; }
.admin-toolbar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.doc-link { color: var(--cdot-blue); font-size: 0.82rem; display: block; }
.status-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.status-DRAFT { background: #fff3cd; color: #856404; }
.status-SUBMITTED { background: #d4edda; color: #155724; }
.steps a { color: inherit; text-decoration: none; }
.steps a:hover { text-decoration: underline; }


/* Admin report – compact PQ chips */
.pq-compact { display: flex; flex-wrap: wrap; gap: 4px; max-width: 220px; }
.pq-chip {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 6px; border-radius: 4px; font-size: 0.72rem;
    background: #f0f4f8; border: 1px solid #d0d8e0; white-space: nowrap;
}
.pq-chip.yes { background: #e8f5e9; border-color: #a5d6a7; color: #1b5e20; }
.pq-chip.no { background: #fafafa; border-color: #e0e0e0; color: #616161; }
.pq-chip a { color: inherit; text-decoration: underline; font-weight: 600; max-width: 70px; overflow: hidden; text-overflow: ellipsis; }
.admin-table th.col-pq { min-width: 140px; max-width: 220px; }
.admin-table td.col-pq { min-width: 140px; max-width: 240px; }

/* Same-as locked fields */
.field-locked, textarea.field-locked, input.field-locked {
    background: #f0f3f7 !important;
    color: #333;
    cursor: not-allowed;
}
.same-as-check { font-size: 0.9rem; color: #003366; }

legend.legend-with-check {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    width: 100%;
}
.inline-legend-check {
    font-weight: 500;
    font-size: 0.85rem;
    color: #003366;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    white-space: nowrap;
}


/* OTP / error pages — centre both axes */
html:has(body.centered-page),
body.centered-page {
    min-height: 100vh;
    margin: 0;
}
body.centered-page {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    padding: 1.5rem;
}
body.centered-page .otp-card {
    margin: 0 auto;
    flex: 0 0 auto;
}

.otp-center {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.phone-row { display:flex; gap:8px; align-items:stretch; }
.phone-row .country-code { width:150px; flex-shrink:0; height:42px; border:1px solid #d9dee6; border-radius:6px; padding:0 8px; background:#fff; }
.phone-row input[type=tel] { flex:1; min-width:0; }


/* Registration form — more room between rows */
.right-panel .form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
    margin-bottom: 1.35rem;
}
.right-panel .form .form-group {
    margin-bottom: 1.35rem;
}
.right-panel .form .form-row .form-group {
    margin-bottom: 0;
}
.right-panel .form .form-group label {
    margin-bottom: 0.5rem;
}
.right-panel .form input[type=text],
.right-panel .form input[type=email],
.right-panel .form input[type=tel],
.right-panel .form select {
    height: 46px;
}
@media (max-width: 900px) {
    .right-panel .form .form-row { grid-template-columns: 1fr; gap: 1.15rem; }
}

.portal-page { background:#f4f7fb; margin:0; }
.portal-top { background:linear-gradient(90deg,#0a3f86,#0d4ea3); color:#fff; display:flex; align-items:center; gap:16px; padding:10px 22px; min-height:72px; }
.portal-brand { display:flex; align-items:center; gap:12px; flex:1; }
.portal-logo { width:42px; height:42px; background:#fff; border-radius:4px; }
.portal-brand-name { font-weight:700; font-size:15px; }
.portal-brand-org { font-size:11px; line-height:1.3; opacity:.9; }
.portal-user { text-align:right; font-size:13px; }
.portal-reg { font-size:12px; opacity:.85; }
.portal-logout { color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,.45); border-radius:6px; padding:6px 12px; font-size:13px; }
.portal-body { display:grid; grid-template-columns:230px 1fr; min-height:calc(100vh - 72px); }
.portal-side { background:#fff; border-right:1px solid #e6edf5; padding:18px 12px; }
.portal-side h2 { font-size:14px; margin:0 8px 12px; color:#1a2a3a; }
.step-link { display:flex; gap:10px; align-items:center; text-decoration:none; color:#334; padding:8px 10px; border-radius:10px; font-size:13px; margin-bottom:4px; }
.step-link span { width:22px; height:22px; border-radius:50%; background:#eef2f7; display:grid; place-items:center; font-size:12px; }
.step-link.active { background:#eef3fb; font-weight:700; }
.step-link.active span { background:#123a73; color:#fff; }
.portal-side-foot { margin-top:28px; font-size:12px; font-weight:700; padding:8px; }
.portal-main { padding:22px 26px 40px; }
.welcome-hero { display:grid; grid-template-columns:1.4fr .8fr; gap:18px; background:#fff; border-radius:16px; padding:22px; }
.accent-bar { display:block; width:42px; height:4px; background:#e2a100; border-radius:4px; margin-bottom:12px; }
.welcome-copy h1 { color:#123a73; font-size:32px; line-height:1.15; margin:0 0 10px; }
.welcome-sub { font-weight:700; margin-bottom:10px; }
.welcome-banner { border-radius:12px; min-height:180px; background:linear-gradient(160deg,#1d4e89,#163e72 40%,#2f6e4f); color:#fff; display:flex; align-items:flex-end; justify-content:flex-end; padding:16px; }
.banner-slogan { text-align:right; font-weight:700; letter-spacing:.4px; }
.journey-title { margin:22px 0 4px; color:#123a73; }
.journey-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; margin-top:12px; }
.journey-card { background:#f7f9fd; border:1px solid #e6edf5; border-radius:12px; padding:14px 10px; text-decoration:none; color:#123a73; text-align:center; }
.journey-card span { display:inline-grid; place-items:center; width:22px; height:22px; border-radius:50%; background:#e7eef8; font-size:12px; }
.journey-card strong { display:block; margin:8px 0 4px; font-size:13px; }
.journey-card small { color:#5a6a7a; font-size:12px; }
.welcome-actions { display:grid; grid-template-columns:1.2fr 1fr; gap:12px; margin-top:16px; }
.btn-start { display:block; background:#123a73; color:#fff; text-align:center; text-decoration:none; border-radius:10px; padding:16px; font-weight:700; }
.btn-start.secondary { margin-top:12px; }
.ready-note { background:#f4f7fb; border-radius:10px; padding:14px; font-size:14px; }
.req-panel { background:#fff; border-radius:12px; padding:18px; margin-top:18px; }
@media (max-width:1100px) { .journey-grid { grid-template-columns:repeat(3,1fr); } .welcome-hero,.welcome-actions,.portal-body { grid-template-columns:1fr; } }

.portal-logo { width:54px; height:54px; background:#fff; border-radius:4px; box-shadow:0 0 0 2px #fff; }
.portal-top .brand-name { color:#fff; font-size:16px; }
.portal-top .brand-org { color:#e7eef8; font-size:12px; }
.welcome-card { display:grid; grid-template-columns:1.35fr .85fr; gap:20px; background:#fff; border-radius:16px; padding:28px 28px 22px; box-shadow:0 1px 2px rgba(16,40,70,.04); }
.welcome-card h1 { color:#16315f; font-size:34px; line-height:1.15; margin:8px 0 12px; }
.welcome-banner { position:relative; border-radius:12px; min-height:210px; overflow:hidden; background:linear-gradient(145deg,#7eb6e6 0%,#4d86c5 28%,#1e4f86 62%,#2f6b45 100%); }
.banner-art { position:absolute; inset:18px 18px 18px 28%; border-radius:8px; background:
  linear-gradient(180deg, rgba(255,255,255,.18), transparent 40%),
  repeating-linear-gradient(90deg, rgba(255,255,255,.15) 0 2px, transparent 2px 18px); }
.banner-slogan { position:absolute; right:16px; top:18px; color:#fff; font-weight:700; text-align:right; letter-spacing:.6px; line-height:1.25; }
.req-list { line-height:2; margin:0; padding-left:1.2rem; }

.portal-body { display:grid; grid-template-columns:240px 1fr; gap:14px; padding:14px; align-items:start; }
.portal-body aside { background:#fff; border-radius:10px; padding:18px 12px; }
.portal-body .steps { list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.portal-body .steps li a { display:flex; align-items:center; gap:10px; text-decoration:none; color:#5a6785; padding:9px 8px; border-radius:8px; font-size:13px; }
.portal-body .steps li.on a { background:#e9f0fc; color:#0b2150; font-weight:600; }
.portal-body .n { width:30px; height:30px; border-radius:50%; background:#e9f0fc; display:grid; place-items:center; font-size:13px; }
.portal-body .on .n { background:#0b2150; color:#fff; }
.portal-body .steps svg { width:22px; height:22px; stroke:#0b2150; fill:none; stroke-width:1.6; }
.portal-body .side-foot { margin-top:18px; }
.portal-body .side-foot img { width:100%; border-radius:6px; }
.portal-body .flag { height:3px; width:90px; background:linear-gradient(90deg,#f90 33%,#ccc 33% 66%,#138808 66%); }
.portal-main { min-width:0; }

.portal-body .steps { counter-reset: none; }
.portal-body .steps li { counter-increment: none; padding-left: 0; }
.portal-body .steps li::before { content: none; display: none; }

/* Shared side nav: same text and icon size for every item, selected or not */
.portal-body aside h2,
.wrap aside h2 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.portal-body .steps li,
.wrap .steps li {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    padding: 0;
    margin: 0 0 4px;
}
.portal-body .steps li a,
.wrap .steps li a,
.portal-body .steps li.on a,
.wrap .steps li.on a {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    gap: 8px;
}
.portal-body .steps .n,
.wrap .steps .n,
.portal-body .steps li.on .n,
.wrap .steps li.on .n {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 12px;
    font-weight: 600;
    line-height: 26px;
}
.portal-body .steps svg,
.wrap .steps svg,
.portal-body .steps li.on svg,
.wrap .steps li.on svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    flex: none;
}
.portal-body .side-foot b,
.wrap .side-foot b { font-size: 13px; font-weight: 700; }

.portal-top .brand-row { display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto auto; column-gap:14px; align-items:center; }
.portal-top .logo-col { display:contents; }
.portal-top .brand-row .logo-svg { grid-column:1; grid-row:1; width:54px; height:54px; background:#fff; border-radius:4px; }
.portal-top .brand-row .brand-name { grid-column:1; grid-row:2; text-align:center; color:#fff; font-size:14px; font-weight:700; margin-top:4px; }
.portal-top .brand-row .cdot-en { grid-column:1; grid-row:3; text-align:center; color:#fff; font-size:13px; font-weight:700; }
.portal-top .brand-row .brand-text { grid-column:2; grid-row:1; align-self:center; }
.portal-top .brand-row .brand-org { color:#e7eef8; font-size:12px; line-height:1.35; }

.left-panel .brand-row { display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto auto; column-gap:16px; align-items:center; }
.left-panel .logo-col { display:contents; }
.left-panel .brand-row .logo-svg { grid-column:1; grid-row:1; width:76px; height:76px; }
.left-panel .brand-row .brand-name { grid-column:1; grid-row:2; text-align:center; margin-top:6px; color:#fff; }
.left-panel .brand-row .cdot-en { grid-column:1; grid-row:3; text-align:center; color:#fff; font-weight:700; font-size:16px; }
.left-panel .brand-row .brand-text { grid-column:2; grid-row:1; align-self:center; }

.brand-row .brand-name { margin-top: 2px !important; margin-bottom: 0; line-height: 1.05; }
.brand-row .cdot-en { margin-top: 0; line-height: 1.05; }
.portal-top .brand-row .brand-name { margin-top: 2px; }
.left-panel .brand-row .brand-name { margin-top: 2px; }

.assoc-line { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.assoc-line > label { margin:0; }
.alert { position:relative; padding-right:2.2rem; }
.alert-close { position:absolute; right:8px; top:6px; border:0; background:transparent; font-size:20px; line-height:1; cursor:pointer; color:inherit; }

.brand-row { row-gap: 0 !important; }
.brand-row .brand-name, .brand-row .cdot-en { margin: 0 !important; padding: 0; line-height: 1; }
.portal-top .brand-row .brand-name, .left-panel .brand-row .brand-name { margin-top: 0 !important; }
.portal-top .brand-row .cdot-en, .left-panel .brand-row .cdot-en { margin-top: -2px !important; }

/* logo to Hindi name: more space; Hindi to C-DOT stays tight */
.portal-top .brand-row .brand-name,
.left-panel .brand-row .brand-name { margin-top: 8px !important; }
.portal-top .brand-row .cdot-en,
.left-panel .brand-row .cdot-en { margin-top: 0 !important; }


/* Responsive layout for tablet and phone */
@media (max-width: 1100px) {
    .portal-top { padding: 10px 14px; gap: 10px; }
    .portal-body { grid-template-columns: 200px 1fr; }
    .admin-table, .pq-table, .ie-table, .pc-table, .data-table { font-size: 0.85rem; }
}
@media (max-width: 900px) {
    .portal-top { flex-wrap: wrap; align-items: flex-start; }
    .portal-brand { min-width: 0; }
    .portal-user { text-align: left; }
    .portal-logout { margin-left: auto; }
    .portal-body { display: block; padding: 10px; }
    .portal-body aside, .portal-side {
        width: 100%;
        margin-bottom: 12px;
        overflow-x: auto;
    }
    .portal-body .steps, .portal-side .steps {
        display: flex;
        gap: 6px;
        min-width: max-content;
    }
    .portal-body .steps li { margin: 0; }
    .portal-body .side-foot { display: none; }
    .portal-main, main.portal-main { min-width: 0; }
    .form-grid, .form-row, .form-row-2, .form-row-3 { grid-template-columns: 1fr !important; }
    .table-wrap, .pq-table, .ie-table, .pc-table, .admin-table, .data-table { display: block; width: 100%; overflow-x: auto; }
    .form-actions { flex-wrap: wrap; }
    .assoc-line { flex-direction: column; align-items: flex-start; gap: 8px; }
    .phone-row { flex-wrap: wrap; }
    .otp-card { padding: 1.25rem; }
    .otp-digit { width: 40px; height: 46px; font-size: 1.1rem; }
    .admin-wrap { padding: 0 0.5rem; }
}
@media (max-width: 640px) {
    .left-panel { padding: 1.25rem 1rem; }
    .left-panel h1 { font-size: 1.25rem; margin: 16px 0 12px; }
    .left-panel .feature-card { padding: 12px; }
    .left-panel .brand-row .logo-svg { width: 58px; height: 58px; }
    .right-panel { padding: 1rem 0.85rem 1.5rem; }
    .portal-top .brand-org { display: none; }
    .portal-reg { display: block; }
    .btn-primary, .btn-secondary { width: 100%; }
    .form-actions .btn-primary, .form-actions .btn-secondary { width: auto; }
}

/* Login/register phone and tablet: stack panels, keep left panel fully visible, larger fields */
@media (max-width: 900px) {
    .split-container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        min-height: 100vh;
        width: 100%;
    }
    .left-panel {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        flex: none !important;
        padding: 1.25rem 1rem 1rem;
    }
    .left-panel .brand-row {
        display: flex !important;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }
    .left-panel .logo-col { display: flex; flex-direction: column; align-items: center; }
    .left-panel .brand-text { flex: 1; min-width: 180px; }
    .left-panel h1 { margin: 16px 0 10px; font-size: 1.35rem; }
    .left-panel .lead { max-width: none; margin-bottom: 12px; }
    .right-panel {
        width: 100% !important;
        flex: 1 1 auto;
        padding: 1.25rem 1rem 2rem !important;
        align-items: stretch !important;
    }
    .right-panel-inner { width: 100%; max-width: 100% !important; }
    .right-panel .form input,
    .right-panel .form select,
    .right-panel .form textarea {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
        padding: 0.7rem 0.85rem;
    }
    .right-panel .form label { font-size: 0.95rem; }
    .right-panel .btn-primary,
    .right-panel .btn-secondary { min-height: 48px; font-size: 16px; }
}

.portal-top { gap: 10px; }
.portal-logout { white-space: nowrap; }
.portal-top .portal-logout + .portal-logout { margin-left: 8px; }

.ie-product-box { max-height: 150px; overflow: auto; border: 1px solid #d7e0ea; border-radius: 6px; padding: 6px 8px; background: #fff; min-width: 240px; }
.ie-product-item { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; line-height: 1.3; margin: 2px 0; cursor: pointer; }
.ie-product-item input { margin-top: 2px; flex: 0 0 auto; }

.url-prefix { width: 92px; flex: 0 0 92px; height: 42px; border: 1px solid #d9dee6; border-radius: 6px; padding: 0 8px; background: #f3f5f8; color: #5a6a7a; text-align: center; }
.phone-row input#website { flex: 1; min-width: 0; }

.feature-link { text-decoration: none; color: inherit; cursor: pointer; }
.feature-link:hover { background: rgba(255,255,255,0.12); }

.guidelines-link { margin-top: 0.35rem; }
.guidelines-link a { color: #0b3d91; font-weight: 600; text-decoration: none; }
.guidelines-link a:hover { text-decoration: underline; }

.country-code-full { width: 100%; min-width: 220px; }
