:root {
    --expat-green: #08762d;
    --expat-green-dark: #034c1e;
    --expat-green-soft: #eaf8ef;
    --expat-yellow: #ffda00;
    --expat-navy: #172334;
    --expat-text: #536176;
    --expat-muted: #8b96a7;
    --expat-border: #e0e6ec;
    --expat-bg: #f4f7f5;
    --expat-white: #ffffff;
    --expat-danger: #dc2626;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at 12% 8%,
            rgba(255, 218, 0, 0.08),
            transparent 25%
        ),
        var(--expat-bg);
    color: var(--expat-text);
    font-family: "Manrope", sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.expat-auth-container {
    width: min(1240px, calc(100% - 40px));
    margin-inline: auto;
}

/* Header */

.expat-auth-header {
    border-bottom: 1px solid rgba(8, 118, 45, 0.1);
    background: rgba(255, 255, 255, 0.96);
}

.expat-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 25px;
}

.expat-auth-logo img {
    width: 210px;
    max-height: 67px;
    object-fit: contain;
}

.expat-header-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.expat-header-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 9px;
    color: #5e6b7e;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.expat-header-links a:hover {
    color: var(--expat-green);
}

.expat-header-whatsapp {
    border: 1px solid #cfe9d8;
    background: #effaf3;
    color: #168c45 !important;
}

/* Main Layout */

.expat-auth-page {
    padding: 46px 0 60px;
}

.expat-auth-layout {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

/* Introduction */

.expat-auth-intro {
    position: sticky;
    top: 28px;
    overflow: hidden;
    padding: 35px;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 218, 0, 0.18),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            var(--expat-green),
            var(--expat-green-dark)
        );
    color: #ffffff;
    box-shadow: 0 24px 55px rgba(3, 76, 30, 0.17);
}

.expat-auth-intro::after {
    position: absolute;
    right: -85px;
    bottom: -90px;
    width: 230px;
    height: 230px;
    border: 35px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    content: "";
}

.expat-intro-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffed8e;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.expat-auth-intro h1 {
    margin: 0;
    color: #ffffff;
    font-family: "Playfair Display", serif;
    font-size: 38px;
    line-height: 1.15;
}

.expat-auth-intro h1 span {
    display: block;
    margin-top: 6px;
    color: var(--expat-yellow);
}

.expat-auth-intro > p {
    margin: 18px 0 25px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.8;
}

.expat-intro-benefits {
    display: grid;
    gap: 10px;
}

.expat-intro-benefits article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
}

.expat-intro-benefits article > div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 218, 0, 0.13);
    color: var(--expat-yellow);
}

.expat-intro-benefits strong,
.expat-intro-benefits small {
    display: block;
}

.expat-intro-benefits strong {
    margin-bottom: 3px;
    font-size: 10px;
}

.expat-intro-benefits small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 8px;
}

.expat-security-note {
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: 2;
    gap: 11px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.expat-security-note > i {
    margin-top: 3px;
    color: var(--expat-yellow);
}

.expat-security-note strong {
    display: block;
    font-size: 9px;
}

.expat-security-note p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 8px;
    line-height: 1.6;
}

/* Auth Card */

.expat-auth-card {
    overflow: hidden;
    border: 1px solid var(--expat-border);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(28, 49, 36, 0.07);
}

.expat-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
    border-bottom: 1px solid var(--expat-border);
    background: #f8faf9;
}

.expat-auth-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 64px;
    padding: 11px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #718093;
    text-align: left;
    cursor: pointer;
}

.expat-auth-tab.active {
    background: #ffffff;
    color: var(--expat-green);
    box-shadow: 0 6px 16px rgba(27, 54, 36, 0.08);
}

.expat-auth-tab > i {
    font-size: 16px;
}

.expat-auth-tab strong,
.expat-auth-tab small {
    display: block;
}

.expat-auth-tab strong {
    margin-bottom: 3px;
    font-size: 11px;
}

.expat-auth-tab small {
    color: var(--expat-muted);
    font-size: 8px;
}

.expat-auth-panel {
    display: none;
    padding: 34px;
}

.expat-auth-panel.active {
    display: block;
}

.expat-form-heading {
    margin-bottom: 27px;
}

.expat-form-heading > span {
    display: block;
    margin-bottom: 7px;
    color: var(--expat-green);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.65px;
}

.expat-form-heading h2 {
    margin: 0 0 7px;
    color: var(--expat-navy);
    font-size: 25px;
    font-weight: 850;
}

.expat-form-heading p {
    margin: 0;
    color: var(--expat-muted);
    font-size: 10px;
    line-height: 1.65;
}

/* Progress */

.expat-form-progress {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 16px;
    border: 1px solid var(--expat-border);
    border-radius: 14px;
    background: #f9fbfa;
}

.expat-progress-step {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 9px;
    color: #929dac;
}

.expat-progress-step > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border: 1px solid #dce3e8;
    border-radius: 50%;
    background: #ffffff;
    font-size: 9px;
    font-weight: 800;
}

.expat-progress-step.active > span,
.expat-progress-step.completed > span {
    border-color: var(--expat-green);
    background: var(--expat-green);
    color: #ffffff;
}

.expat-progress-step.completed > span::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f00c";
}

.expat-progress-step.completed > span {
    font-size: 0;
}

.expat-progress-step strong,
.expat-progress-step small {
    display: block;
}

.expat-progress-step strong {
    margin-bottom: 2px;
    font-size: 8px;
}

.expat-progress-step small {
    font-size: 7px;
}

.expat-progress-step.active strong {
    color: var(--expat-green);
}

.expat-progress-line {
    flex: 1;
    height: 1px;
    margin: 0 10px;
    background: #dfe5e9;
}

/* Steps */

.expat-form-step {
    display: none;
}

.expat-form-step.active {
    display: block;
}

.expat-step-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 23px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--expat-border);
}

.expat-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--expat-green-soft);
    color: var(--expat-green);
}

.expat-step-heading h3 {
    margin: 0 0 4px;
    color: var(--expat-navy);
    font-size: 15px;
}

.expat-step-heading p {
    margin: 0;
    color: var(--expat-muted);
    font-size: 9px;
}

/* Form */

.expat-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.expat-full-width {
    grid-column: 1 / -1;
}

.expat-form-group label {
    display: block;
    margin-bottom: 7px;
    color: #526075;
    font-size: 9px;
    font-weight: 750;
}

.expat-form-group label > span {
    color: var(--expat-danger);
}

.expat-input-group {
    display: flex;
    align-items: center;
    min-height: 43px;
    border: 1px solid #dce3e9;
    border-radius: 9px;
    background: #ffffff;
}

.expat-input-group:focus-within {
    border-color: var(--expat-green);
    box-shadow: 0 0 0 3px rgba(8, 118, 45, 0.08);
}

.expat-input-group > i {
    flex: 0 0 41px;
    color: #9aa5b4;
    font-size: 11px;
    text-align: center;
}

.expat-input-group input,
.expat-input-group select {
    flex: 1;
    min-width: 0;
    height: 41px;
    padding: 0 11px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #3d4a5f;
    font-size: 10px;
}

.expat-input-group input::placeholder {
    color: #abb4c0;
}

.expat-phone-input {
    display: flex;
    overflow: hidden;
    min-height: 43px;
    border: 1px solid #dce3e9;
    border-radius: 9px;
}

.expat-phone-input:focus-within {
    border-color: var(--expat-green);
    box-shadow: 0 0 0 3px rgba(8, 118, 45, 0.08);
}

.expat-phone-input > span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border-right: 1px solid var(--expat-border);
    background: #f8faf9;
    color: #526075;
    font-size: 9px;
    font-weight: 750;
}

.expat-phone-input img {
    width: 18px;
}

.expat-phone-input input {
    flex: 1;
    min-width: 0;
    padding: 0 11px;
    border: 0;
    outline: 0;
    font-size: 10px;
}

.expat-password-group input {
    padding-right: 4px;
}

.expat-password-toggle {
    flex: 0 0 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #8e99aa;
    cursor: pointer;
}

/* Interests */

.expat-interest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.expat-interest-option {
    margin: 0 !important;
    cursor: pointer;
}

.expat-interest-option input {
    position: absolute;
    opacity: 0;
}

.expat-interest-option > span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 47px;
    padding: 10px;
    border: 1px solid var(--expat-border);
    border-radius: 9px;
    background: #ffffff;
    color: #657286 !important;
    font-size: 9px;
}

.expat-interest-option input:checked + span {
    border-color: var(--expat-green);
    background: var(--expat-green-soft);
    color: var(--expat-green) !important;
    box-shadow: 0 0 0 2px rgba(8, 118, 45, 0.06);
}

/* Documents */

.expat-document-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 18px;
    padding: 13px;
    border: 1px solid #d7e8dd;
    border-radius: 10px;
    background: #f3faf5;
}

.expat-document-notice > i {
    margin-top: 3px;
    color: var(--expat-green);
}

.expat-document-notice strong {
    display: block;
    color: #326044;
    font-size: 9px;
}

.expat-document-notice p {
    margin: 4px 0 0;
    color: #668273;
    font-size: 8px;
    line-height: 1.5;
}

.expat-document-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.expat-upload-card {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    min-height: 108px;
    padding: 15px;
    border: 1px dashed #cdd7de;
    border-radius: 12px;
    background: #fbfcfc;
    cursor: pointer;
}

.expat-upload-card:hover,
.expat-upload-card.has-file {
    border-color: var(--expat-green);
    background: #f3faf5;
}

.expat-upload-card input {
    display: none;
}

.expat-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 11px;
    background: var(--expat-green-soft);
    color: var(--expat-green);
}

.expat-upload-card h4 {
    margin: 0 0 4px;
    color: var(--expat-navy);
    font-size: 10px;
}

.expat-upload-card p {
    margin: 0 0 6px;
    color: var(--expat-muted);
    font-size: 8px;
    line-height: 1.5;
}

.expat-file-name {
    display: block;
    overflow: hidden;
    color: var(--expat-green);
    font-size: 8px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.expat-upload-card > i {
    color: #9aa5b4;
}

/* Password and Consent */

.expat-password-requirements {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 15px;
    margin-top: 17px;
    padding: 13px;
    border-radius: 10px;
    background: #f8faf9;
}

.expat-password-requirements strong {
    width: 100%;
    color: #526075;
    font-size: 9px;
}

.expat-password-requirements span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #788497;
    font-size: 8px;
}

.expat-password-requirements i {
    color: var(--expat-green);
}

.expat-consent-option {
    display: flex !important;
    align-items: flex-start;
    position: relative;
    gap: 10px;
    margin: 17px 0 0 !important;
    color: #697589 !important;
    font-size: 8px !important;
    font-weight: 500 !important;
    line-height: 1.65;
    cursor: pointer;
}

.expat-consent-option input {
    position: absolute;
    opacity: 0;
}

.expat-consent-check {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1px solid #ccd5dd;
    border-radius: 5px;
    background: #ffffff;
}

.expat-consent-option input:checked + .expat-consent-check {
    border-color: var(--expat-green);
    background: var(--expat-green);
}

.expat-consent-option input:checked + .expat-consent-check::after {
    color: #ffffff;
    font-family: "Font Awesome 6 Free";
    font-size: 8px;
    font-weight: 900;
    content: "\f00c";
}

.expat-consent-option a {
    color: var(--expat-green);
    font-weight: 750;
}

.expat-approval-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #f0dfa0;
    border-radius: 11px;
    background: #fffbed;
}

.expat-approval-box > div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 39px;
    height: 39px;
    border-radius: 10px;
    background: #fff3b2;
    color: #9b7a00;
}

.expat-approval-box strong {
    display: block;
    color: #6f5d20;
    font-size: 9px;
}

.expat-approval-box p {
    margin: 4px 0 0;
    color: #85743e;
    font-size: 8px;
    line-height: 1.6;
}

/* Actions */

.expat-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 27px;
    padding-top: 20px;
    border-top: 1px solid var(--expat-border);
}

.expat-back-button,
.expat-next-button,
.expat-submit-button,
.expat-login-button,
.expat-create-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 10px 17px;
    border-radius: 9px;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.expat-back-button {
    border: 1px solid #dce3e9;
    background: #ffffff;
    color: #657286;
}

.expat-back-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.expat-next-button,
.expat-submit-button,
.expat-login-button {
    border: 1px solid var(--expat-green);
    background: linear-gradient(
        135deg,
        #0b8b38,
        var(--expat-green)
    );
    color: #ffffff;
    box-shadow: 0 8px 17px rgba(8, 118, 45, 0.18);
}

.expat-submit-button {
    display: none;
}

.expat-auth-switch {
    margin-top: 22px;
    color: var(--expat-muted);
    font-size: 9px;
    text-align: center;
}

.expat-auth-switch button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--expat-green);
    font-weight: 800;
    cursor: pointer;
}

/* Login */

.expat-login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.expat-login-logo img {
    width: 260px;
}

.expat-login-heading {
    text-align: center;
}

.expat-login-form {
    width: min(480px, 100%);
    margin-inline: auto;
}

.expat-login-form .expat-form-group {
    margin-bottom: 17px;
}

.expat-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.expat-label-row a {
    color: var(--expat-green);
    font-size: 8px;
    font-weight: 750;
    text-decoration: none;
}

.expat-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 5px 0 20px;
}

.expat-remember-option {
    display: flex !important;
    align-items: center;
    gap: 7px;
    margin: 0 !important;
    color: #697589 !important;
    font-size: 8px !important;
    cursor: pointer;
}

.expat-remember-option input {
    accent-color: var(--expat-green);
}

.expat-secure-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--expat-green);
    font-size: 8px;
    font-weight: 700;
}

.expat-login-button {
    width: 100%;
    min-height: 47px;
}

.expat-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(480px, 100%);
    margin: 24px auto;
    color: var(--expat-muted);
    font-size: 8px;
    text-align: center;
}

.expat-login-divider::before,
.expat-login-divider::after {
    flex: 1;
    height: 1px;
    background: var(--expat-border);
    content: "";
}

.expat-create-account-button {
    width: min(480px, 100%);
    margin: 0 auto;
    border: 1px solid #cfe3d5;
    background: var(--expat-green-soft);
    color: var(--expat-green);
}

.expat-login-support {
    display: flex;
    align-items: center;
    gap: 11px;
    width: min(480px, 100%);
    margin: 22px auto 0;
    padding: 13px;
    border-radius: 10px;
    background: #f6f8f7;
}

.expat-login-support > i {
    color: #159447;
    font-size: 19px;
}

.expat-login-support strong,
.expat-login-support a {
    display: block;
}

.expat-login-support strong {
    margin-bottom: 3px;
    color: #536176;
    font-size: 8px;
}

.expat-login-support a {
    color: var(--expat-green);
    font-size: 8px;
    text-decoration: none;
}

/* Footer */

.expat-auth-footer {
    padding: 20px 0;
    border-top: 1px solid var(--expat-border);
    background: #ffffff;
}

.expat-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.expat-footer-inner span,
.expat-footer-inner a {
    color: var(--expat-muted);
    font-size: 8px;
    text-decoration: none;
}

.expat-footer-inner div {
    display: flex;
    gap: 16px;
}

/* Responsive */

@media (max-width: 991px) {

    .expat-auth-layout {
        grid-template-columns: 1fr;
    }

    .expat-auth-intro {
        position: static;
    }

    .expat-intro-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {

    .expat-auth-container {
        width: min(100% - 26px, 1240px);
    }

    .expat-auth-logo img {
        width: 155px;
    }

    .expat-header-links > a:first-child {
        display: none;
    }

    .expat-auth-page {
        padding: 25px 0 40px;
    }

    .expat-auth-intro {
        padding: 25px;
    }

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

    .expat-auth-panel {
        padding: 22px;
    }

    .expat-form-progress {
        overflow-x: auto;
        align-items: flex-start;
    }

    .expat-progress-step {
        min-width: 80px;
    }

    .expat-progress-step div {
        display: none;
    }

    .expat-progress-line {
        min-width: 28px;
    }

    .expat-form-grid,
    .expat-document-grid {
        grid-template-columns: 1fr;
    }

    .expat-full-width {
        grid-column: auto;
    }

    .expat-interest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .expat-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .expat-back-button,
    .expat-next-button,
    .expat-submit-button {
        width: 100%;
    }

    .expat-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {

    .expat-header-whatsapp {
        padding: 8px 10px !important;
        font-size: 9px !important;
    }

    .expat-intro-benefits {
        grid-template-columns: 1fr;
    }

    .expat-auth-tabs {
        grid-template-columns: 1fr;
    }

    .expat-auth-tab {
        justify-content: flex-start;
    }

    .expat-form-heading h2 {
        font-size: 21px;
    }

    .expat-interest-grid {
        grid-template-columns: 1fr;
    }

    .expat-login-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .expat-login-logo img {
        width: 220px;
    }
}

/* =========================================================
   TYPOGRAPHY & CONTROL SIZE UPDATE
   Added to improve readability across desktop and mobile
========================================================= */

.expat-header-links a {
    font-size: 14px;
}

.expat-intro-label {
    font-size: 12px;
}

.expat-auth-intro h1 {
    font-size: 54px;
    line-height: 1.12;
    font-weight: 700;
}

.expat-auth-intro > p {
    font-size: 17px;
    line-height: 1.8;
}

.expat-intro-benefits strong {
    font-size: 15px;
    line-height: 1.4;
}

.expat-intro-benefits small {
    font-size: 12px;
    line-height: 1.5;
}

.expat-security-note strong {
    font-size: 14px;
}

.expat-security-note p {
    font-size: 12px;
    line-height: 1.65;
}

.expat-auth-tab {
    min-height: 78px;
}

.expat-auth-tab > i {
    font-size: 21px;
}

.expat-auth-tab strong {
    font-size: 17px;
}

.expat-auth-tab small {
    font-size: 12px;
}

.expat-form-heading > span {
    font-size: 12px;
}

.expat-form-heading h2 {
    font-size: 36px;
    line-height: 1.25;
}

.expat-form-heading p {
    font-size: 15px;
    line-height: 1.7;
}

.expat-form-progress {
    padding: 18px;
}

.expat-progress-step {
    gap: 10px;
}

.expat-progress-step > span {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.expat-progress-step strong {
    font-size: 13px;
}

.expat-progress-step small {
    font-size: 11px;
}

.expat-step-icon {
    width: 56px;
    height: 56px;
    font-size: 20px;
}

.expat-step-heading h3 {
    font-size: 22px;
}

.expat-step-heading p {
    font-size: 14px;
}

.expat-form-grid {
    gap: 20px;
}

.expat-form-group label {
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 700;
}

.expat-input-group {
    min-height: 56px;
}

.expat-input-group > i {
    flex: 0 0 50px;
    font-size: 16px;
}

.expat-input-group input,
.expat-input-group select {
    height: 54px;
    font-size: 15px;
}

.expat-input-group input::placeholder {
    font-size: 14px;
}

.expat-phone-input {
    min-height: 56px;
}

.expat-phone-input > span {
    padding: 0 14px;
    font-size: 14px;
}

.expat-phone-input input {
    font-size: 15px;
}

.expat-password-toggle {
    flex: 0 0 48px;
    height: 54px;
    font-size: 16px;
}

.expat-interest-option > span {
    min-height: 58px;
    padding: 12px;
    font-size: 14px;
}

.expat-document-notice strong {
    font-size: 14px;
}

.expat-document-notice p {
    font-size: 12px;
}

.expat-upload-card {
    min-height: 126px;
    padding: 18px;
}

.expat-upload-card h4 {
    font-size: 16px;
}

.expat-upload-card p {
    font-size: 12px;
}

.expat-file-name {
    font-size: 12px;
}

.expat-password-requirements {
    padding: 16px;
}

.expat-password-requirements strong {
    font-size: 14px;
}

.expat-password-requirements span {
    font-size: 12px;
}

.expat-consent-option {
    font-size: 13px !important;
    line-height: 1.7;
}

.expat-consent-check {
    width: 21px;
    height: 21px;
}

.expat-approval-box strong {
    font-size: 14px;
}

.expat-approval-box p {
    font-size: 12px;
}

.expat-back-button,
.expat-next-button,
.expat-submit-button,
.expat-login-button,
.expat-create-account-button {
    min-height: 54px;
    padding: 12px 20px;
    font-size: 15px;
}

.expat-auth-switch {
    font-size: 13px;
}

.expat-label-row a {
    font-size: 13px;
}

.expat-remember-option {
    font-size: 13px !important;
}

.expat-secure-login {
    font-size: 12px;
}

.expat-login-divider {
    font-size: 13px;
}

.expat-login-support strong {
    font-size: 13px;
}

.expat-login-support a {
    font-size: 12px;
}

.expat-footer-inner span,
.expat-footer-inner a {
    font-size: 12px;
}

@media (max-width: 1199px) {
    .expat-auth-layout {
        grid-template-columns: 360px minmax(0, 1fr);
    }

    .expat-auth-intro h1 {
        font-size: 46px;
    }
}

@media (max-width: 991px) {
    .expat-auth-intro h1 {
        font-size: 42px;
    }
}

@media (max-width: 767px) {
    .expat-auth-panel {
        padding: 24px;
    }

    .expat-form-heading h2 {
        font-size: 30px;
    }

    .expat-progress-step > span {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .expat-step-heading h3 {
        font-size: 20px;
    }

    .expat-form-group label {
        font-size: 14px;
    }

    .expat-input-group input,
    .expat-input-group select,
    .expat-phone-input input {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .expat-auth-intro h1 {
        font-size: 36px;
    }

    .expat-auth-intro > p {
        font-size: 15px;
    }

    .expat-form-heading h2 {
        font-size: 27px;
    }

    .expat-auth-tab strong {
        font-size: 16px;
    }

    .expat-auth-tab small {
        font-size: 12px;
    }

    .expat-consent-option {
        font-size: 12px !important;
    }

    .expat-footer-inner span,
    .expat-footer-inner a {
        font-size: 11px;
    }
}

/* =========================================================
   FINAL MOBILE LAYOUT FIX
   Put at VERY END of expat-auth.css
========================================================= */

@media (max-width: 767px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        background: #f4f7f5;
    }

    /* =========================================
       CONTAINER
    ========================================= */

    .expat-auth-container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        margin: 0 auto;
    }

    /* =========================================
       HEADER
    ========================================= */

    .expat-auth-header {
        width: 100%;
        background: #ffffff;
    }

    .expat-header-inner {
        min-height: 64px;
        padding-top: 6px;
        padding-bottom: 6px;
        gap: 10px;
    }

    .expat-auth-logo {
        flex: 0 0 auto;
    }

    .expat-auth-logo img {
        width: 125px;
        max-height: 50px;
        object-fit: contain;
    }

    .expat-header-links {
        margin-left: auto;
        gap: 5px;
    }

    .expat-header-links > a:first-child {
        display: none;
    }

    .expat-header-whatsapp {
        min-height: 38px !important;
        padding: 7px 10px !important;
        border-radius: 9px;
        font-size: 11px !important;
    }

    /* =========================================
       PAGE
    ========================================= */

    .expat-auth-page {
        padding: 12px 0 25px;
    }

    /*
       IMPORTANT:
       Form comes first.
       Green introduction comes after form.
    */

    .expat-auth-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .expat-auth-card {
        order: 1;
        width: 100%;
    }

    .expat-auth-intro {
        order: 2;
        width: 100%;
    }

    /* =========================================
       AUTH CARD
    ========================================= */

    .expat-auth-card {
        overflow: hidden;
        border-radius: 16px;
        box-shadow: 0 8px 25px rgba(28, 49, 36, 0.07);
    }

    /* =========================================
       REGISTER / LOGIN TABS
    ========================================= */

    .expat-auth-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        padding: 5px;
    }

    .expat-auth-tab {
        justify-content: center;
        min-width: 0;
        min-height: 62px;
        padding: 8px 5px;
        gap: 7px;
    }

    .expat-auth-tab > i {
        flex: 0 0 auto;
        font-size: 17px;
    }

    .expat-auth-tab > div {
        min-width: 0;
    }

    .expat-auth-tab strong {
        margin: 0;
        font-size: 13px;
        white-space: nowrap;
    }

    .expat-auth-tab small {
        display: none;
    }

    /* =========================================
       FORM PANEL
    ========================================= */

    .expat-auth-panel {
        width: 100%;
        padding: 20px 14px;
    }

    .expat-form-heading {
        margin-bottom: 20px;
    }

    .expat-form-heading > span {
        margin-bottom: 6px;
        font-size: 10px;
    }

    .expat-form-heading h2 {
        margin-bottom: 7px;
        font-size: 24px;
        line-height: 1.25;
    }

    .expat-form-heading p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* =========================================
       PROGRESS
    ========================================= */

    .expat-form-progress {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        gap: 5px;
        margin-bottom: 22px;
        padding: 9px 6px;
        overflow: hidden;
    }

    .expat-progress-step {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    .expat-progress-step > span {
        width: 31px;
        height: 31px;
        font-size: 11px;
    }

    .expat-progress-step > div {
        display: none;
    }

    .expat-progress-line {
        display: none;
    }

    /* =========================================
       STEP HEADING
    ========================================= */

    .expat-step-heading {
        align-items: center;
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .expat-step-icon {
        width: 43px;
        height: 43px;
        border-radius: 10px;
        font-size: 17px;
    }

    .expat-step-heading > div:last-child {
        min-width: 0;
    }

    .expat-step-heading h3 {
        margin-bottom: 3px;
        font-size: 18px;
        line-height: 1.3;
    }

    .expat-step-heading p {
        font-size: 11px;
        line-height: 1.5;
    }

    /* =========================================
       FORM GRID
    ========================================= */

    .expat-form-grid,
    .expat-document-grid,
    .expat-interest-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
    }

    .expat-full-width {
        grid-column: auto;
    }

    .expat-form-group {
        width: 100%;
        min-width: 0;
    }

    .expat-form-group label {
        margin-bottom: 7px;
        font-size: 13px;
    }

    /* =========================================
       INPUTS
    ========================================= */

    .expat-input-group {
        width: 100%;
        min-height: 52px;
    }

    .expat-input-group > i {
        flex: 0 0 40px;
        font-size: 14px;
    }

    .expat-input-group input,
    .expat-input-group select {
        width: 100%;
        min-width: 0;
        height: 50px;
        padding-right: 10px;

        /*
         * 16px prevents iPhone Safari zooming
         * automatically when input is focused.
         */
        font-size: 16px;
    }

    .expat-input-group input::placeholder {
        font-size: 14px;
    }

    /* =========================================
       PHONE
    ========================================= */

    .expat-phone-input {
        width: 100%;
        min-height: 52px;
    }

    .expat-phone-input > span {
        flex: 0 0 auto;
        padding: 0 9px;
        font-size: 12px;
    }

    .expat-phone-input img {
        width: 17px;
    }

    .expat-phone-input input {
        width: 100%;
        min-width: 0;
        height: 50px;
        padding: 0 10px;
        font-size: 16px;
    }

    /* =========================================
       PASSWORD
    ========================================= */

    .expat-password-toggle {
        flex: 0 0 42px;
        height: 50px;
    }

    /* =========================================
       INTERESTS
    ========================================= */

    .expat-interest-grid {
        grid-template-columns: 1fr;
    }

    .expat-interest-option > span {
        min-height: 52px;
        padding: 11px;
        font-size: 13px;
    }

    /* =========================================
       DOCUMENT NOTICE
    ========================================= */

    .expat-document-notice {
        gap: 9px;
        padding: 12px;
    }

    .expat-document-notice strong {
        font-size: 13px;
    }

    .expat-document-notice p {
        font-size: 11px;
    }

    /* =========================================
       UPLOAD CARD
    ========================================= */

    .expat-upload-card {
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        gap: 10px;
        width: 100%;
        min-height: 95px;
        padding: 12px;
    }

    .expat-upload-icon {
        width: 40px;
        height: 40px;
    }

    .expat-upload-card h4 {
        font-size: 14px;
    }

    .expat-upload-card p {
        font-size: 10px;
    }

    .expat-file-name {
        max-width: 100%;
        font-size: 10px;
    }

    /* =========================================
       PASSWORD REQUIREMENTS
    ========================================= */

    .expat-password-requirements {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 12px;
    }

    .expat-password-requirements strong {
        font-size: 13px;
    }

    .expat-password-requirements span {
        font-size: 11px;
    }

    /* =========================================
       CONSENT
    ========================================= */

    .expat-consent-option {
        gap: 9px;
        font-size: 11px !important;
        line-height: 1.65;
    }

    .expat-consent-check {
        width: 20px;
        height: 20px;
    }

    /* =========================================
       APPROVAL
    ========================================= */

    .expat-approval-box {
        gap: 10px;
        padding: 12px;
    }

    .expat-approval-box > div:first-child {
        width: 36px;
        height: 36px;
    }

    .expat-approval-box strong {
        font-size: 13px;
    }

    .expat-approval-box p {
        font-size: 11px;
    }

    /* =========================================
       BUTTONS
    ========================================= */

    .expat-form-actions {
        display: flex;
        flex-direction: column-reverse;
        width: 100%;
        gap: 8px;
        margin-top: 20px;
        padding-top: 16px;
    }

    .expat-back-button,
    .expat-next-button,
    .expat-submit-button {
        width: 100%;
        min-height: 50px;
        font-size: 14px;
    }

    /* =========================================
       LOGIN
    ========================================= */

    .expat-login-logo {
        margin-bottom: 16px;
    }

    .expat-login-logo img {
        width: 185px;
    }

    .expat-login-form {
        width: 100%;
    }

    .expat-login-form .expat-form-group {
        margin-bottom: 14px;
    }

    .expat-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        margin-bottom: 17px;
    }

    .expat-remember-option {
        font-size: 12px !important;
    }

    .expat-secure-login {
        font-size: 11px;
    }

    .expat-login-button,
    .expat-create-account-button {
        width: 100%;
        min-height: 50px;
        font-size: 14px;
    }

    .expat-login-divider {
        width: 100%;
        margin: 19px 0;
    }

    .expat-login-support {
        width: 100%;
        margin-top: 18px;
    }

    /* =========================================
       GREEN PROMOTIONAL PANEL
       NOW BELOW FORM
    ========================================= */

    .expat-auth-intro {
        width: 100%;
        padding: 22px 18px;
        border-radius: 16px;
    }

    .expat-auth-intro::after {
        right: -100px;
        bottom: -110px;
    }

    .expat-intro-label {
        margin-bottom: 13px;
        font-size: 9px;
    }

    .expat-auth-intro h1 {
        font-size: 29px;
        line-height: 1.15;
    }

    .expat-auth-intro h1 span {
        margin-top: 4px;
    }

    .expat-auth-intro > p {
        margin: 13px 0 18px;
        font-size: 13px;
        line-height: 1.65;
    }

    .expat-intro-benefits {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .expat-intro-benefits article {
        gap: 10px;
        padding: 10px;
    }

    .expat-intro-benefits article > div {
        width: 37px;
        height: 37px;
    }

    .expat-intro-benefits strong {
        font-size: 13px;
    }

    .expat-intro-benefits small {
        font-size: 10px;
    }

    .expat-security-note {
        margin-top: 15px;
        padding-top: 15px;
    }

    .expat-security-note strong {
        font-size: 12px;
    }

    .expat-security-note p {
        font-size: 10px;
    }

    /* =========================================
       FOOTER
    ========================================= */

    .expat-auth-footer {
        padding: 17px 0;
    }

    .expat-footer-inner {
        align-items: center;
        flex-direction: column;
        gap: 9px;
        text-align: center;
    }

    .expat-footer-inner div {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 15px;
    }

    .expat-footer-inner span,
    .expat-footer-inner a {
        font-size: 10px;
    }
}


/* =========================================================
   VERY SMALL PHONE
   390px AND BELOW
========================================================= */

@media (max-width: 390px) {

    .expat-auth-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .expat-auth-logo img {
        width: 115px;
    }

    .expat-header-whatsapp {
        padding: 6px 8px !important;
        font-size: 10px !important;
    }

    .expat-auth-panel {
        padding: 17px 11px 20px;
    }

    .expat-form-heading h2 {
        font-size: 22px;
    }

    .expat-auth-tab {
        gap: 5px;
    }

    .expat-auth-tab > i {
        font-size: 15px;
    }

    .expat-auth-tab strong {
        font-size: 12px;
    }

    .expat-form-progress {
        padding: 8px 4px;
    }

    .expat-progress-step > span {
        width: 29px;
        height: 29px;
    }

    .expat-step-icon {
        width: 40px;
        height: 40px;
    }

    .expat-step-heading h3 {
        font-size: 16px;
    }

    .expat-auth-intro {
        padding: 20px 15px;
    }

    .expat-auth-intro h1 {
        font-size: 27px;
    }
}
.expat-password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    height: 54px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8e99aa;
    cursor: pointer;
}

.expat-password-toggle:hover {
    color: var(--expat-green);
}