* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow: hidden;
    font-family: "DM Sans", "Noto Sans", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 12%, rgba(124, 196, 199, 0.35), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(18, 59, 102, 0.16), transparent 26%),
        linear-gradient(135deg, #eef5f8 0%, #f8fbfd 52%, #e8f3f5 100%);
}

.layout {
    height: 100vh;
    display: grid;
    grid-template-columns: minmax(520px, 1.08fr) minmax(460px, 0.92fr);
    overflow: hidden;
}

/* Left pane */

.promo {
    height: 100vh;
    overflow: hidden;
    padding: 52px 58px 38px;
    background:
        radial-gradient(circle at 28% 10%, rgba(114, 214, 187, 0.26), transparent 32%),
        radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.13), transparent 26%),
        linear-gradient(150deg, #08233c 0%, #0b4f55 54%, #0c694f 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.promo-logo-wrap {
    margin-bottom: 28px;
}

.promo-logo {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.18));
    margin-bottom: 24px;
}

.promo-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 0 14px;
    padding: 6px 11px;
    border: 1px solid rgba(177, 241, 217, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(229, 255, 245, 0.9);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.promo h1,
.promo-tagline {
    max-width: 680px;
    margin: 0 0 14px;
    letter-spacing: 0;
    color: #ffffff;
}

.promo-tagline-primary,
.promo-tagline-secondary {
    display: block;
    letter-spacing: 0;
}

.promo-tagline-primary {
    font-size: clamp(38px, 4.25vw, 60px);
    line-height: 0.98;
    font-weight: 900;
}

.promo-tagline-secondary {
    margin-top: 8px;
    color: rgba(229, 255, 245, 0.92);
    font-size: clamp(24px, 2.45vw, 34px);
    line-height: 1.08;
    font-weight: 700;
}

.promo p.lead,
.lead {
    max-width: 610px;
    margin: 0;
    font-size: 15.5px;
    line-height: 1.72;
    color: rgba(239, 255, 249, 0.84);
}

.promo-points {
    margin-top: 26px;
    display: grid;
    gap: 12px;
    max-width: 620px;
}

.promo-card {
    position: relative;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(208, 255, 238, 0.16);
    border-radius: 14px;
    padding: 14px 16px 14px 44px;
    backdrop-filter: blur(10px);
}

.promo-card::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #87f0bf;
    box-shadow: 0 0 0 7px rgba(135, 240, 191, 0.12);
}

.promo-card strong {
    display: block;
    font-size: 13.5px;
    margin-bottom: 4px;
    color: #ffffff;
    font-weight: 800;
}

.promo-card span {
    color: rgba(239, 255, 249, 0.78);
    font-size: 12.75px;
    line-height: 1.48;
}

.promo-footer {
    margin-top: 32px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.promo-footer a {
    color: #7cc4c7;
    font-weight: 700;
    text-decoration: none;
}

.promo-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.promo-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 30px;
    max-width: 760px;
}

.promo-stats div {
    min-height: 70px;
    padding: 13px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(208, 255, 238, 0.15);
    backdrop-filter: blur(8px);
}

.promo-stats strong {
    display: block;
    font-size: 15px;
    line-height: 1.05;
    margin-bottom: 7px;
    color: #ffffff;
    font-weight: 850;
}

.promo-stats span {
    color: rgba(239, 255, 249, 0.72);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.22;
}

/* Right pane */

.auth-shell {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 56px 56px 40px;
    display: block;
    position: relative;
}

.auth-logo-wrap {
    position: static;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 28px;
}

.auth-logo {
    display: block;
    max-width: 190px;
    height: auto;
}

.auth-panel {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: auto;
    overflow: visible;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.auth-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
.auth-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 28px;
}

.auth-header .auth-logo {
    max-width: 190px;
}

.theme-toggle {
    display: none;
}

.auth-intro {
    margin-bottom: 20px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand-2);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-intro h2 {
    margin: 0 0 8px;
    font-size: 42px;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.06em;
}

.auth-intro p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

/* Tabs */

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    box-shadow: inset 0 0 0 1px rgba(18, 59, 102, 0.04);
    backdrop-filter: blur(12px);
}

.tab-btn {
    flex: 1;
    border: 0;
    border-radius: 999px;
    background: transparent;
    padding: 12px;
    font-weight: 900;
    color: #607080;
    cursor: pointer;
    transition: 0.18s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--brand);
}

.tab-btn.active {
    background: var(--panel-solid);
    color: var(--brand);
    box-shadow: 0 12px 26px rgba(18, 59, 102, 0.11);
}

/* Panels and forms */

.tab-panel {
    display: none;
    padding: 28px;
    border-radius: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.tab-panel.active {
    display: block;
}

.field {
    margin-bottom: 16px;
}

label,
.field > label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 900;
    color: var(--brand);
}

input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    font-size: 14px;
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.9);
    transition: 0.18s ease;
    font-family: inherit;
}

input:focus {
    border-color: rgba(14, 116, 144, 0.45);
    box-shadow: 0 0 0 5px rgba(124, 196, 199, 0.18);
}

.account-type-field {
    margin-bottom: 18px;
}

.account-type-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.account-type-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: 0.18s ease;
    font-family: inherit;
}

.account-type-pill:hover {
    border-color: rgba(14, 116, 144, 0.30);
    background: rgba(238, 248, 248, 0.85);
    transform: translateY(-1px);
}

.account-type-pill.active {
    border-color: rgba(14, 116, 144, 0.42);
    background: #eef8f8;
    box-shadow: 0 0 0 4px rgba(124, 196, 199, 0.16);
}

.account-type-icon {
    display: inline-grid;
    flex: 0 0 40px;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: var(--brand);
    background: rgba(124, 196, 199, 0.18);
    font-size: 21px;
}

.account-type-pill.active .account-type-icon {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.account-type-pill strong,
.account-type-pill small {
    display: block;
}

.account-type-pill strong {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.2;
}

.account-type-pill small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.country-field {
    position: relative;
}

.country-dropdown {
    display: none;
    position: absolute;
    z-index: 30;
    top: calc(100% - 8px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-solid);
    box-shadow: 0 18px 36px rgba(18, 59, 102, 0.18);
}

.country-option {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    color: var(--text);
    font-weight: 700;
    text-align: left;
}

.country-option:hover {
    background: rgba(124, 196, 199, 0.16);
}

.country-option strong {
    color: var(--brand-2);
    font-size: 12px;
}

button {
    font-family: inherit;
}

button.primary,
button.verify-btn {
    width: 100%;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #ffffff;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(18, 59, 102, 0.18);
    transition: 0.18s ease;
}

button.secondary-action {
    width: 100%;
    margin-top: 10px;
    border: 1px solid rgba(14, 116, 144, 0.24);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand);
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.18s ease;
}

button.secondary-action:hover {
    border-color: rgba(14, 116, 144, 0.42);
    background: rgba(238, 248, 248, 0.95);
    transform: translateY(-1px);
}

button.primary:hover,
button.verify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 38px rgba(18, 59, 102, 0.22);
}

button.verify-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.login-recovery-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.login-recovery-actions button {
    border: 0;
    background: transparent;
    color: var(--brand-2);
    padding: 0;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.login-recovery-actions button:hover {
    color: var(--brand);
    text-decoration: underline;
}

.message {
    display: none;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
}

.message.success {
    display: block;
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #abefc6;
}

.message.error {
    display: block;
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #fecdca;
}

.otp-form {
    display: none;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.otp-form.active {
    display: block;
}

.inline-check {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    color: var(--muted) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.inline-check input {
    width: auto;
    margin: 0;
    accent-color: var(--brand-2);
}

.inline-check span {
    line-height: 1;
}

/* Verify PDF upload */

.verify-drop-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 156px;
    padding: 26px 20px;
    margin-bottom: 14px;

    text-align: center;
    cursor: pointer;

    border: 2px dashed rgba(14, 116, 144, 0.28);
    border-radius: 20px;
    background:
        radial-gradient(circle at top, rgba(124, 196, 199, 0.20), transparent 42%),
        rgba(255, 255, 255, 0.68);

    transition: 0.18s ease;
}

.verify-drop-area:hover,
.verify-drop-area.drag-over {
    border-color: var(--brand-2);
    background:
        radial-gradient(circle at top, rgba(124, 196, 199, 0.30), transparent 45%),
        rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 32px rgba(18, 59, 102, 0.10);
    transform: translateY(-1px);
}

.verify-drop-area input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.verify-drop-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 18px;
    background: rgba(14, 116, 144, 0.10);
    color: var(--brand-2);
    font-size: 26px;
}

.verify-drop-label {
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
}

.verify-drop-sub {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.verify-selected-file {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 15px;
    background: rgba(14, 116, 144, 0.08);
    border: 1px solid rgba(14, 116, 144, 0.18);
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
}

.verify-selected-file.visible {
    display: flex;
}

.verify-selected-file i {
    color: var(--brand-2);
    font-size: 17px;
}

.verify-selected-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Verify progress */

.verify-upload-status {
    display: none;
    margin-top: 16px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand);
    border: 1px solid rgba(14, 116, 144, 0.16);
    font-size: 13px;
    font-weight: 900;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.verify-upload-status.active {
    display: block;
}

.verify-status-label {
    margin: 0;
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
}

.verify-status-sub {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.verify-progress {
    height: 7px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.14);
}

.verify-progress-bar {
    width: 35%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-soft));
    animation: verifyProgress 1.1s ease-in-out infinite;
}

@keyframes verifyProgress {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(320%);
    }
}

/* Trust verification card */

.trust-card {
    display: none;
    margin-top: 18px;
    background: var(--panel);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.trust-card.verified,
.trust-card.warning {
    display: block;
}

.trust-card.verified {
    border-left: 5px solid var(--success);
}

.trust-card.warning {
    border-left: 5px solid #f59e0b;
}

.trust-status-row,
.trust-top-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.trust-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 18px;
}

.trust-card.verified .trust-icon {
    background: var(--success-bg);
    color: var(--success);
}

.trust-card.warning .trust-icon {
    background: #fffaeb;
    color: #b45309;
}

.trust-heading,
.trust-top-bar h3 {
    margin: 0;
    font-size: 20px;
    color: var(--ink);
    letter-spacing: -0.03em;
}

.trust-badge {
    flex: 0 0 auto;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.trust-card.verified .trust-badge {
    background: var(--success-bg);
    color: var(--success);
}

.trust-card.warning .trust-badge {
    background: #fffaeb;
    color: #b45309;
}

.trust-message {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0 16px;
}

.trust-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.trust-detail-row {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 13px;
}

.trust-label {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 900;
}

.trust-value {
    font-size: 12px;
    font-weight: 900;
    color: var(--ink);
    word-break: break-word;
}

.trust-sensitive-chip {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(18, 59, 102, 0.08);
    color: #123b66;
    font-size: 9px;
    font-style: normal;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.trust-success {
    color: var(--success);
}

.trust-warning {
    color: #b45309;
}

.trust-footer-note {
    margin-top: 16px;
    font-size: 11px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 12px;
    line-height: 1.5;
}

.trust-sensitive-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(18, 59, 102, 0.07);
    color: #31506f;
    font-size: 11px;
    line-height: 1.45;
}

/* Responsive */
@media (max-width: 980px) {
    html,
    body {
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        background: linear-gradient(135deg, #eef5f8 0%, #f8fbfd 52%, #e8f3f5 100%);
    }

    .layout {
        display: block;
        width: 100%;
        min-height: 100vh;
        height: auto;
        overflow: visible;
    }

    .promo {
        display: none;
    }

    .auth-shell {
        width: 100%;
        min-height: 100vh;
        height: auto;
        overflow: visible;
        padding: 28px 18px;
    }

    .auth-card {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .auth-header {
        margin-bottom: 20px;
    }

    .auth-header .auth-logo {
        max-width: 160px;
    }

    .auth-intro {
        margin-bottom: 18px;
    }

    .auth-intro h2 {
        font-size: 36px;
        line-height: 1.08;
        letter-spacing: 0;
    }

    .auth-intro p {
        font-size: 14px;
    }

    .tabs {
        gap: 6px;
        margin-bottom: 14px;
        padding: 6px;
        border-radius: 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        min-width: max-content;
        padding: 10px 12px;
        font-size: 13px;
    }

    .tab-panel {
        padding: 20px;
        border-radius: 20px;
    }

    input {
        min-height: 46px;
        font-size: 16px;
    }

    button.primary,
    button.verify-btn {
        min-height: 48px;
        font-size: 15px;
    }

    .message {
        font-size: 13px;
        line-height: 1.45;
    }
}

@media (max-width: 560px) {
    .auth-shell {
        padding: 18px 12px;
    }

    .auth-card {
        max-width: 100%;
    }

    .auth-header {
        margin-bottom: 16px;
    }

    .auth-header .auth-logo {
        max-width: 142px;
    }

    .auth-intro h2 {
        font-size: 30px;
    }

    .tabs {
        border-radius: 16px;
    }

    .tab-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .field {
        margin-bottom: 14px;
    }

    .account-type-pills {
        grid-template-columns: 1fr;
    }

    .trust-details-grid {
        grid-template-columns: 1fr;
    }

    .trust-status-row,
    .trust-top-bar {
        flex-direction: column;
    }

    .verify-drop-area {
        min-height: 132px;
        padding: 20px 14px;
    }

    .verify-drop-icon {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }
}

/* Register mobile hardening */
@media (max-width: 640px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .layout,
    .auth-shell,
    .auth-card,
    .tab-panel {
        max-width: 100%;
        min-width: 0;
    }

    .auth-shell {
        padding: 16px 10px 22px;
    }

    .auth-intro h2 {
        font-size: 28px;
        line-height: 1.1;
    }

    .tabs {
        width: 100%;
        max-width: 100%;
    }

    .tab-panel {
        padding: 14px;
    }

    .form-grid,
    .trust-details-grid {
        grid-template-columns: 1fr !important;
    }
}
.registration-consent {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 9px;
    align-items: start;
    margin: 4px 0 14px;
    padding: 11px 12px;
    color: var(--muted);
    background: var(--row-bg, rgba(18, 59, 102, 0.04));
    border: 1px solid var(--line);
    border-radius: 11px;
    font-size: 11.5px;
    line-height: 1.55;
}
.registration-consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brand); }
.registration-consent a { color: var(--brand-2); font-weight: 800; text-decoration: none; }
.registration-consent a:hover { text-decoration: underline; }
.registration-consent-summary {
    display: grid;
    gap: 4px;
    margin: 5px 0 9px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.5;
}
.registration-consent-summary strong { color: var(--ink); font-size: 12px; }
.registration-consent small { display: block; margin-top: 5px; color: var(--muted); }
