* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow: hidden;
    font-family: "Noto Sans", 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: 56px 56px 40px;
    background:
        radial-gradient(circle at 30% 8%, rgba(124, 196, 199, 0.42), transparent 34%),
        linear-gradient(180deg, #092744 0%, #123b66 48%, #0e5668 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.promo h1 {
    max-width: 720px;
    font-size: clamp(34px, 4.4vw, 52px);
    line-height: 1.08;
    margin: 0 0 18px;
    letter-spacing: 0;
    font-weight: 650;
    color: #ffffff;
}

.promo p.lead,
.lead {
    max-width: 660px;
    margin: 0;
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.promo-points {
    margin-top: 36px;
    display: grid;
    gap: 16px;
    max-width: 660px;
}

.promo-card {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 18px 20px;
    backdrop-filter: blur(8px);
}

.promo-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
    color: #ffffff;
}

.promo-card span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.5;
}

.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: 12px;
    margin-top: 34px;
    max-width: 760px;
}

.promo-stats div {
    padding: 15px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
}

.promo-stats strong {
    display: block;
    font-size: 20px;
    line-height: 1;
    margin-bottom: 8px;
    color: #ffffff;
}

.promo-stats span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

/* 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.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;
}

.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-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;
}

/* 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;
    }
}
