/* ===============================
   SPLIT AUTH LAYOUT
================================ */
.auth-split {
    min-height: 100vh;
    margin-top: 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: linear-gradient(
        135deg,
        rgba(11,51,102,0.95),
        rgba(10,186,181,0.9)
    );
}

/* ===============================
   LEFT VISUAL
================================ */
.auth-visual {
    background:
        linear-gradient(
            135deg,
            rgba(11,51,102,0.85),
            rgba(10,186,181,0.85)
        ),
        var(--auth-visual-image, url("../images/hero/hero-5.png"))
        center / cover no-repeat;
    display: flex;
    align-items: center;
    padding: 132px 60px 60px;
    transition: background-image 0.35s ease;
}

.auth-visual-overlay {
    color: #fff;
    max-width: 420px;
}

.auth-visual-overlay h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.auth-visual-overlay p {
    font-size: 17px;
    opacity: 0.9;
}

/* ===============================
   FORM SIDE
================================ */
.auth-form {
    background: #fff;
    padding: 132px 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form h3 {
    margin-bottom: 18px;
    color: var(--secondary);
}

/* ===============================
   STEP INDICATOR
================================ */
.steps {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
}

.step {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e5e7eb;
    display: grid;
    place-items: center;
    font-weight: 600;
}

.step.active {
    background: #0BB1AE;
    color: #ffffff;
}

/* ===============================
   FORM STEPS
================================ */
.form-step {
    display: none;
    animation: slideIn 0.4s ease;
}

.form-step.active {
    display: block;
}

/* ===============================
   FORM GRID
================================ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

.field {
    position: relative;
}

.field label {
    font-size: 13px;
    color: #374151;
}

.field input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.field input:focus {
    outline: none;
    border-color: #0BB1AE;
    box-shadow: 0 0 0 3px rgba(11,177,174,0.25);
}

.market-start-grid {
    margin-bottom: 18px;
}

.market-field-hint {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.licence-builder {
    margin-top: 26px;
    padding: 22px;
    border: 1px solid #cfe6e7;
    border-radius: 8px;
    background: #f7fbfb;
}

.licence-builder-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.licence-builder-head span {
    color: #087f7c;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.licence-builder-head h4 {
    margin: 5px 0 7px;
    color: #0b3366;
    font-size: 20px;
    line-height: 1.3;
}

.licence-builder-head p {
    max-width: 560px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.licence-add-btn,
.licence-remove-btn {
    border: 0;
    cursor: pointer;
}

.licence-add-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid #0bb1ae;
    border-radius: 7px;
    background: #ffffff;
    color: #087f7c;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.licence-add-btn:hover,
.licence-add-btn:focus-visible {
    background: #e9f9f8;
    outline: 3px solid rgba(11, 177, 174, 0.18);
}

.licence-builder-guide {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-left: 3px solid #0bb1ae;
    border-radius: 4px;
    background: #eaf8f7;
    color: #475569;
}

.licence-builder-guide i {
    margin-top: 3px;
    color: #087f7c;
}

.licence-builder-guide p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
}

.licence-builder-guide strong {
    color: #0b3366;
}

.licence-rows {
    display: grid;
    gap: 14px;
}

.licence-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
    padding: 18px;
    border: 1px solid #d7e5ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(11, 51, 102, 0.05);
}

.licence-row-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-right: 38px;
}

.licence-row-number {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #0b3366;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.licence-row-heading small {
    color: #64748b;
    font-size: 12px;
}

.licence-row .field {
    min-width: 0;
}

.licence-row .field label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-weight: 600;
}

.licence-field-country,
.licence-field-region,
.licence-field-type {
    grid-column: span 2;
}

.licence-field-number,
.licence-field-expiry {
    grid-column: span 3;
}

.licence-remove-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff1f1;
    color: #b42318;
    font-size: 14px;
    line-height: 1;
}

.licence-remove-btn:hover,
.licence-remove-btn:focus-visible {
    background: #fee2e2;
    outline: 3px solid rgba(220, 38, 38, 0.12);
}

[data-market-document][hidden] {
    display: none !important;
}

@media (max-width: 980px) {
    .licence-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .licence-field-country,
    .licence-field-region,
    .licence-field-type,
    .licence-field-number,
    .licence-field-expiry {
        grid-column: span 1;
    }

    .licence-field-expiry {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .licence-builder {
        padding: 15px;
    }

    .licence-builder-head {
        flex-direction: column;
    }

    .licence-add-btn {
        width: 100%;
    }

    .licence-row {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 15px;
    }

    .licence-field-country,
    .licence-field-region,
    .licence-field-type,
    .licence-field-number,
    .licence-field-expiry {
        grid-column: 1;
    }

    .licence-row-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding-right: 36px;
    }
}

.field select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field select option {
    white-space: normal;
    font-size: 14px;
    line-height: 1.45;
}

.field select:focus {
    outline: none;
    border-color: #0BB1AE;
    box-shadow: 0 0 0 3px rgba(11,177,174,0.25);
}

.field input.input-error,
.field select.input-error,
.upload-box.input-error,
.document-expiry-field input.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.14) !important;
    background: #fff8f8;
}

.inline-field-error {
    min-height: 18px;
    margin-top: 8px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.inline-field-error.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* INLINE STATUS */
.status {
    position: absolute;
    right: 14px;
    top: 38px;
    color: #22c55e;
}

/* ===============================
   UPLOADS
================================ */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 18px;
    align-items: stretch;
}

.upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.upload label {
    font-size: 13px;
}

.upload-box {
    min-width: 0;
    min-height: 160px;
    padding: 22px 18px;
    border: 1px dashed #cfe0f4;
    border-radius: 18px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.upload-box:hover {
    border-color: rgba(10, 186, 181, 0.45);
    box-shadow: 0 12px 28px rgba(11, 51, 102, 0.08);
    transform: translateY(-1px);
}

.upload.upload-with-expiry {
    grid-column: auto;
    min-width: 0;
    padding: 18px;
    border: 1px dashed #cfe0f4;
    border-radius: 18px;
    background: #ffffff;
    gap: 12px;
}

.upload.upload-with-expiry .upload-box {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.upload.upload-with-expiry .upload-box:hover {
    border: 0;
    box-shadow: none;
    transform: none;
}

.upload-extra-files {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.upload-extra-file {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
    min-width: 0;
}

.upload-box.upload-box-secondary,
.upload.upload-with-expiry .upload-box.upload-box-secondary {
    min-height: 74px;
    padding: 12px 14px;
    border: 1px dashed #cfe0f4;
    border-radius: 12px;
    background: #f8fcff;
    align-items: flex-start;
    text-align: left;
    box-shadow: none;
    transform: none;
}

.upload-box.upload-box-secondary:hover,
.upload.upload-with-expiry .upload-box.upload-box-secondary:hover {
    border-color: rgba(10, 186, 181, 0.5);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(11, 51, 102, 0.06);
    transform: translateY(-1px);
}

.upload-add-file,
.upload-remove-file {
    border: 0;
    border-radius: 10px;
    min-height: 38px;
    padding: 0 13px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.upload-add-file {
    align-self: flex-start;
    background: #eef8f8;
    color: #0B3366;
}

.upload-remove-file {
    background: #fff1f2;
    color: #be123c;
}

.upload-add-file:hover,
.upload-remove-file:hover {
    filter: brightness(.96);
}

.upload-title {
    display: block;
    max-width: 100%;
    min-width: 0;
    color: #0B3366;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.upload-helper {
    display: block;
    max-width: 100%;
    min-width: 0;
    color: #5c6f82;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.file-name {
    display: block;
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.5;
    overflow: hidden;
}

.selected-file-name {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 3px;
    overflow: hidden;
    color: #0f172a;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-file-more {
    color: #5c6f82;
    font-weight: 700;
}

#registrationBody {
    max-width: 100%;
    min-width: 0;
}

.file-progress {
    min-height: 0;
}

.upload-manual .upload-box-manual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-height: 100%;
}

.upload-box-manual textarea,
.upload-box-manual input[type="text"] {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d7e2ee;
    border-radius: 12px;
    background: #ffffff;
    font: inherit;
    color: #0f172a;
}

.upload-box-manual textarea {
    min-height: 118px;
    resize: vertical;
}

.document-expiry-field.signup-document-expiry-field {
    display: block;
    width: min(100%, 360px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 0;
}

.document-expiry-field.signup-document-expiry-field span {
    display: block;
    margin-bottom: 8px;
    color: #263f63;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
}

.upload.upload-with-expiry .document-expiry-field.signup-document-expiry-field {
    width: min(100%, 360px);
}

.signup-date-input-wrap {
    position: relative;
    display: block;
    margin-bottom: 0;
}

.document-expiry-field.signup-document-expiry-field input[type="date"] {
    display: block !important;
    width: 100%;
    min-height: 44px;
    padding: 0 44px 0 16px;
    border-radius: 12px;
    border: 1px solid #cddff0;
    background: #ffffff;
    color: #000000;
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    color-scheme: light;
}

.document-expiry-field.signup-document-expiry-field input[type="date"]:focus {
    outline: none;
    border-color: #cddff0;
    box-shadow: 0 0 0 3px rgba(205, 223, 240, 0.28);
}

.signup-date-input-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    pointer-events: none;
    background: center / 17px 17px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    opacity: 1;
}

.document-expiry-field.signup-document-expiry-field input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.signup-expiry-note {
    width: min(100%, 360px);
    margin: 8px auto 0;
    padding: 9px 11px;
    border: 1px solid #d9edf0;
    border-radius: 10px;
    background: #f7fcff;
    color: #49647c;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 640px) {
    .upload-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .upload-box {
        min-height: 132px;
        padding: 18px 14px;
    }

    .upload.upload-with-expiry {
        grid-column: auto;
        padding: 16px 14px;
    }

    .upload-extra-file {
        grid-template-columns: 1fr;
    }

    .upload-add-file,
    .upload-remove-file {
        width: 100%;
    }

    .document-expiry-field.signup-document-expiry-field input[type="date"] {
        min-height: 44px;
        padding: 0 42px 0 14px;
        font-size: 16px;
    }

    .signup-date-input-icon {
        right: 14px;
    }
}

/* ===============================
   SKILLS
================================ */
.skills {
    margin: 28px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
}

.skills-block {
    margin-top: 26px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #f8fbfc;
    border: 1px solid #dcecf0;
}

.skills-title {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    color: #0B3366;
    font-size: 15px;
    font-weight: 700;
}

.skills-block label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #334155;
}

.skills-helper {
    width: 100%;
    margin: 0 0 6px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.usa-checklist-options {
    gap: 10px;
}

.usa-checklist-options label {
    flex: 1 1 calc(50% - 5px);
    min-width: 240px;
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid #d7e8ed;
    border-radius: 10px;
    background: #fff;
    line-height: 1.35;
    cursor: pointer;
}

.usa-checklist-options label:has(input:checked) {
    border-color: #0bb1ae;
    background: #eefbf9;
    box-shadow: 0 0 0 2px rgba(11, 177, 174, .1);
}

.usa-checklist-options input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    accent-color: #0bb1ae;
}

.usa-checklist-options small {
    display: block;
    margin-top: 3px;
    color: #718096;
    font-size: 11px;
    font-weight: 500;
}

.market-document-note {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 26px 0;
    padding: 16px 18px;
    border: 1px solid rgba(11, 177, 174, 0.24);
    border-left: 4px solid #0bb1ae;
    border-radius: 10px;
    background: #f2fbfb;
}

.market-document-note[hidden] {
    display: none;
}

.market-document-note > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0bb1ae;
    color: #fff;
}

.market-document-note strong {
    display: block;
    color: #0b3366;
    font-size: 14px;
}

.market-document-note p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 520px) {
    .usa-checklist-options label {
        flex-basis: 100%;
        min-width: 0;
    }

    .market-document-note {
        align-items: flex-start;
        padding: 14px;
    }
}

/* ===============================
   BUTTONS
================================ */
.next,
.prev {
    margin-top: 24px;
    padding: 14px 18px;          /* smaller size */
    border-radius: 14px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    background: #0BB1AE;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.next:hover,
.prev:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(11,177,174,0.35);
}

.btn-primary {
    margin-top: 24px;
    padding: 16px 34px;          /* keep larger size */
    border-radius: 18px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    background: #0BB1AE;
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(11,177,174,0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #089e9a;
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(11,177,174,0.48);
}

.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.78;
    transform: none;
}

.btn-primary .btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-primary.loading .btn-text {
    display: none;
}

.btn-primary.loading .btn-loader {
    display: inline-block;
}


/* ===============================
   LINK
================================ */
.auth-link {
    margin-top: 24px;
    font-size: 14px;
}

/* ===============================
   ANIMATION
================================ */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes registerFieldShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.shake {
    animation: registerFieldShake 0.3s;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
    .auth-split {
        min-height: 100vh;
        min-height: 100svh;
        margin-top: 0;
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .auth-form {
        min-height: 100vh;
        min-height: 100svh;
        padding: 96px 16px 36px;
        box-sizing: border-box;
    }

    .form-grid,
    .upload-grid {
        grid-template-columns: 1fr;
    }

    .upload.upload-with-expiry {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .auth-form {
        padding: 88px 12px 30px;
    }

    .steps {
        justify-content: center;
        margin-bottom: 24px;
    }

    .register-form,
    .form-step,
    .form-grid,
    .upload-grid {
        width: 100%;
        min-width: 0;
    }

    .auth-form h3 {
        font-size: 22px;
        line-height: 1.25;
        text-align: center;
    }

    .field input,
    .field select,
    .auth-form select {
        min-height: 46px;
        padding-left: 13px;
        padding-right: 38px;
        box-sizing: border-box;
        font-size: 15px;
    }

    .upload-grid {
        gap: 14px;
    }
}

@media (max-width: 380px) {
    .auth-form {
        padding-left: 10px;
        padding-right: 10px;
    }

    .step {
        width: 32px;
        height: 32px;
    }
}

/* ===============================
   SUCCESS MODAL
================================ */
.success-modal {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(10,186,181,0.22), transparent 34%),
        rgba(7, 24, 40, 0.48);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 18px;
}

.success-modal.active {
    display: flex;
}

.success-card {
    background: linear-gradient(180deg, #ffffff, #f8fbfc);
    padding: 32px 28px 28px;
    border-radius: 22px;
    text-align: center;
    max-width: 392px;
    width: min(100%, 392px);
    border: 1px solid rgba(11,177,174,0.10);
    box-shadow: 0 26px 58px rgba(7, 24, 40, 0.22);
    animation: popIn 0.35s ease;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(246,233,149,0.30), rgba(255,255,255,0.96));
    color: #d4af37;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: bold;
    box-shadow:
        inset 0 0 0 1px rgba(212,175,55,0.18),
        0 10px 24px rgba(212,175,55,0.22);
}

.success-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--secondary);
    font-size: 28px;
    line-height: 1.2;
}

.success-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.65;
    margin-bottom: 22px;
}

.success-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: #0ABAB5;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.success-actions {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.success-secondary-link {
    color: #0B3366;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.success-secondary-link:hover {
    color: #0a8f8b;
}

.verification-next-steps {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
    text-align: left;
}

.verification-step {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid #e5eef6;
    border-radius: 14px;
    background: #f8fbfc;
}

.verification-step strong {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,186,181,0.10);
    color: #0ABAB5;
    font-size: 13px;
}

.verification-step span {
    color: #47627f;
    font-size: 13px;
    line-height: 1.55;
}

.success-actions .btn-primary {
    width: 100%;
    max-width: 260px;
    margin-top: 0;
    padding: 14px 22px;
    border-radius: 14px;
}

.success-secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(11,51,102,0.06);
}

@media (max-width: 640px) {
    .success-modal {
        padding: 14px;
    }

    .success-card {
        width: min(100%, 336px);
        padding: 24px 18px 20px;
        border-radius: 18px;
    }

    .success-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
        font-size: 24px;
    }

    .success-kicker {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .success-card h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .success-card p {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .verification-next-steps {
        gap: 8px;
        margin-bottom: 18px;
    }

    .verification-step {
        gap: 10px;
        padding: 10px 11px;
        border-radius: 12px;
    }

    .verification-step span {
        font-size: 12.5px;
    }

    .success-actions {
        gap: 10px;
    }

    .success-actions .btn-primary,
    .success-secondary-link {
        width: 100%;
        max-width: none;
    }
}

.verification-step strong {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e6f7f6;
    color: #0ABAB5;
    font-size: 13px;
}

.verification-step span {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.password-field {
    position: relative;
}

.field-eye {
    position: absolute;
    right: 14px;
    top: 42px;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 0;
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    position: relative;
}

.strength-bar::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: 999px;
    background: #d1d5db;
    transition: width 0.2s ease, background 0.2s ease;
}

.strength-bar.strength-weak::after {
    width: 35%;
    background: #ef4444;
}

.strength-bar.strength-medium::after {
    width: 68%;
    background: #f59e0b;
}

.strength-bar.strength-strong::after {
    width: 100%;
    background: #16a34a;
}

.password-match {
    min-height: 18px;
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.password-match.is-match {
    color: #0f9f75;
}

.password-match.is-mismatch {
    color: #dc2626;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.upload-progress {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 5px;
    margin-top: 12px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #0ABAB5;
    transition: width 0.2s ease;
}

/* ==========================
   MODERN SELECT DROPDOWN
========================== */
.auth-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #d0d5dd;
    background-color: #fff;
    font-size: 15px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%23667085' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    cursor: pointer;
}

.auth-form select:focus {
    outline: none;
    border-color: #0ABAB5;
    box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.15);
}

.auth-form select:hover {
    border-color: #98a2b3;
}

/* Upload helper text */
.upload small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #667085;
}

/* Upload progress */
.upload-progress {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 5px;
    margin-top: 14px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #0ABAB5;
    transition: width 0.2s ease;
}

#modernPopup{
position:fixed;
inset:0;
background:rgba(0,0,0,.4);
display:flex;
align-items:center;
justify-content:center;
padding:16px;
box-sizing:border-box;
z-index:9999;
}

.popup-box{
background:#fff;
padding:26px;
border-radius:16px;
width:320px;
max-width:100%;
box-sizing:border-box;
text-align:center;
box-shadow:0 20px 50px rgba(0,0,0,.2);
animation:pop .2s ease;
}

.popup-box button{
margin-top:16px;
background:#0ABAB5;
border:none;
color:white;
padding:10px 20px;
border-radius:10px;
cursor:pointer;
}

@keyframes pop{
from{transform:scale(.8);opacity:0}
to{transform:scale(1);opacity:1}
}

.upload input[type="file"] {
    cursor: pointer;
    pointer-events: auto;
}

.success-modal {
    position: fixed;
    inset: 0;
    background: rgba(7, 23, 42, 0.52);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 18px;
}

.success-card {
    width: min(100%, 392px);
    padding: 32px 24px 24px;
    border-radius: 22px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(11, 51, 102, 0.08);
    box-shadow: 0 24px 56px rgba(11, 51, 102, 0.18);
}

.success-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 28px;
    color: #0ABAB5;
    background: linear-gradient(180deg, rgba(10,186,181,0.16), rgba(10,186,181,0.08));
    box-shadow: inset 0 0 0 1px rgba(10,186,181,0.08);
}

.success-card h3 {
    margin: 0 0 10px;
    color: #0B3366;
    font-size: 28px;
    line-height: 1.2;
}

.success-card p {
    margin: 0 0 20px;
    color: #5b6f87;
    font-size: 14px;
    line-height: 1.65;
}

.success-kicker {
    color: #0ABAB5;
}

.verification-next-steps {
    gap: 10px;
    margin-bottom: 22px;
}

.verification-step {
    padding: 12px 13px;
    border: 1px solid #e5eef6;
    border-radius: 14px;
    background: #f8fbfc;
}

.verification-step strong {
    background: #e6f7f6;
    color: #0ABAB5;
}

.verification-step span {
    color: #47627f;
}

.success-actions {
    gap: 10px;
}

.success-secondary-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 10px;
    background: #eef4f8;
    color: #0B3366;
}

.success-secondary-link:hover {
    background: #e3edf4;
    color: #0B3366;
}

@media (max-width: 640px) {
    .success-modal {
        padding: 12px;
    }

    .success-card {
        width: min(100%, 344px);
        padding: 24px 16px 18px;
        border-radius: 18px;
    }

    .success-card h3 {
        font-size: 22px;
    }

    .success-card p,
    .verification-step span {
        font-size: 13px;
        line-height: 1.55;
    }

    .verification-step {
        grid-template-columns: 24px minmax(0, 1fr);
        gap: 10px;
        padding: 11px 12px;
    }

    .verification-step strong {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

/* Final small-screen auth fit overrides */
@media (max-width: 640px) {
    .auth-form {
        padding: 88px 12px 30px;
    }

    .field input,
    .field select,
    .auth-form select {
        min-height: 46px;
        padding-left: 13px;
        padding-right: 38px;
        box-sizing: border-box;
    }

    .register-form,
    .form-step,
    .form-grid,
    .upload-grid {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 380px) {
    .auth-form {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Keep the existing three-stage design, with stable spacing and visible progress. */
.auth-form .steps{display:flex;align-items:center;gap:18px;margin:24px 0 30px}
.auth-form .steps .step{flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;position:relative;font-size:14px;line-height:1;border:1px solid #d5e0e5}
.auth-form .steps .step:not(:last-child)::after{content:"";position:absolute;left:calc(100% + 1px);width:18px;height:2px;top:50%;background:#d5e0e5}
.auth-form .steps .step.active{border-color:#08aaa9;box-shadow:0 0 0 4px #08aaa918}
.auth-form .form-step h3{margin-bottom:24px}

/* Document controls stay compact without changing the split-screen artwork. */
.auth-form .upload-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
}
.auth-form .upload-grid > .upload {
    padding: 22px 0;
    border: 0;
    border-bottom: 1px solid #dce7ed;
    border-radius: 0;
    background: transparent;
    gap: 12px;
    min-height: 0;
}
.auth-form .upload-grid .upload-box {
    min-height: 0;
    padding: 16px 18px;
    border: 1px dashed #9cbfc7;
    border-radius: 8px;
    background: #f7fbfc;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
    box-shadow: none;
    transform: none;
}
.auth-form .upload-grid .upload-box:hover {
    border-color: #008e91;
    background: #eefafa;
}
.auth-form .upload-title { font-size: 15px; font-weight: 700; }
.auth-form .upload-helper { font-size: 13px; }
.auth-form .file-name { font-size: 14px; color: #087b80; overflow-wrap: anywhere; }
.auth-form .upload-add-file,
.auth-form .upload-remove-file {
    max-width: 100%;
    min-height: 40px;
    height: auto;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: normal;
}
.auth-form .upload .signup-document-expiry-field { text-align: left; margin: 0; }
.auth-form .upload .signup-expiry-note { margin: 0; text-align: left; }
.auth-form .upload:focus-within .upload-box { outline: 2px solid #008e91; outline-offset: 3px; }
