/* Sidalhag Brand Colors - unified with main style.css */
:root {
    --sidalhag-primary: #0c9267;
    --sidalhag-primary-light: #097d58;
    --sidalhag-gold: #e8ae00;
    --sidalhag-gold-light: #f0c14b;
}

/* Override primary for Sidalhag branding */
.auth-creative-wrapper .bg-primary,
.auth-creative-wrapper .btn-primary,
.auth-creative-wrapper .text-primary,
.auth-creative-wrapper a.text-primary,
.auth-creative-wrapper .border-primary {
    --bs-primary: var(--sidalhag-primary) !important;
    --bs-primary-rgb: 19, 147, 105 !important;
}

.auth-creative-wrapper .bg-primary {
    background-color: var(--sidalhag-primary) !important;
}

.auth-creative-wrapper .btn-primary {
    background-color: var(--sidalhag-primary) !important;
    border-color: var(--sidalhag-primary) !important;
}

.auth-creative-wrapper .btn-primary:hover {
    background-color: var(--sidalhag-primary-light) !important;
    border-color: var(--sidalhag-primary-light) !important;
}

.auth-creative-wrapper a.text-primary,
.auth-creative-wrapper .text-primary {
    color: var(--sidalhag-primary) !important;
}

.auth-creative-wrapper .form-control:focus {
    border-color: var(--sidalhag-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(12, 146, 103, 0.25) !important;
}

.auth-creative-wrapper .form-check-input:checked {
    background-color: var(--sidalhag-primary) !important;
    border-color: var(--sidalhag-primary) !important;
}

.auth-creative-wrapper .btn-light-brand {
    background-color: rgba(12, 146, 103, 0.1) !important;
    border-color: rgba(12, 146, 103, 0.2) !important;
    color: var(--sidalhag-primary) !important;
}

.auth-creative-wrapper .btn-light-brand:hover {
    background-color: rgba(12, 146, 103, 0.2) !important;
    border-color: var(--sidalhag-primary) !important;
    color: var(--sidalhag-primary) !important;
}

.auth-creative-wrapper .auth-creative-inner::after {
    background: #f0fdf9 !important;
}

/* Back button - top right corner, larger text */
.auth-back-btn {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1100;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 12px 22px;
    font-size: 17px;
    font-weight: 600;
    color: #002f34;
    background: linear-gradient(135deg, #f0fdf9 0%, #ffffff 65%, #f7f8f8 100%);
    border: 1px solid rgba(12, 146, 103, 0.22);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(12, 146, 103, 0.12), 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}
.auth-back-btn:hover {
    color: #0c9267;
    border-color: rgba(12, 146, 103, 0.55);
    box-shadow: 0 14px 38px rgba(12, 146, 103, 0.16), 0 4px 14px rgba(0,0,0,0.06);
}

.auth-back-btn i {
    font-size: 18px;
    transform: translateY(1px);
}

@media (max-width: 576px) {
    .auth-back-btn {
        top: 16px;
        right: 14px;
        padding: 10px 16px;
        font-size: 16px;
        border-radius: 10px;
    }
    .auth-back-btn i {
        font-size: 16px;
    }
}

/* Auth brand logo - login & register pages */
.auth-brand-logo-center {
    width: 90px;
    height: 90px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.auth-brand-logo-img {
    width: 100%;
    height: 100%;
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}
/* Form column needs position for logo positioning */
.auth-creative-wrapper .col-lg-6.order-1 {
    position: relative;
}
/* PC: position logo at boundary (between form and side panel), no overlap with form */
@media (min-width: 992px) {
    /* LTR: form left, side right - logo at form's right edge */
    .auth-brand-logo-center {
        top: 50%;
        left: auto;
        right: 0;
        transform: translate(50%, -50%);
    }
    /* RTL: form right, side left - logo at form's left edge */
    [dir="rtl"] .auth-brand-logo-center {
        left: 0;
        right: auto;
        transform: translate(-50%, -50%);
    }
}
/* Ensure form content stays above logo so inputs are never covered */
.auth-creative-wrapper .creative-card-body {
    position: relative;
    z-index: 10;
}
.auth-brand-logo-top {
    padding-top: 0.25rem;
}
.auth-brand-logo-img-mobile {
    height: 72px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Auth side panel: image slider + transparent gradient overlay */
.auth-side-panel {
    position: relative;
    overflow: hidden;
}
.auth-side-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.auth-slider-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.auth-slider-slide.active {
    opacity: 1;
    z-index: 1;
}
.auth-side-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(19, 147, 105, 0.45) 0%, rgba(14, 122, 85, 0.5) 50%, rgba(0, 47, 52, 0.55) 100%);
    pointer-events: none;
}
.auth-side-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}
/* Logo in front of slider - larger, visible, with float animation */
@keyframes auth-logo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.auth-side-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    animation: auth-logo-float 4s ease-in-out infinite;
}
.auth-side-logo {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Auth cards: increased height for login (social icons) and register */
.auth-creative-wrapper .creative-card-wrapper .card {
    height: 620px;
    max-height: 620px;
}
.auth-creative-wrapper .creative-card-wrapper .card.auth-login-card,
.auth-creative-wrapper .creative-card-wrapper .card.auth-register-card {
    min-height: 520px;
    height: auto;
    max-height: none;
    overflow: visible;
}
.auth-creative-wrapper .creative-card-wrapper .card .row {
    height: 100%;
}
.auth-creative-wrapper .creative-card-wrapper .card.auth-login-card .row,
.auth-creative-wrapper .creative-card-wrapper .card.auth-register-card .row {
    height: auto;
}
.auth-creative-wrapper .creative-card-wrapper .card .row > [class*="col-"] {
    height: 100%;
}
.auth-creative-wrapper .creative-card-wrapper .card.auth-login-card .row > [class*="col-"],
.auth-creative-wrapper .creative-card-wrapper .card.auth-register-card .row > [class*="col-"] {
    height: auto;
}
.auth-creative-wrapper .creative-card-wrapper .card .creative-card-body {
    height: 100%;
}
.auth-creative-wrapper .creative-card-wrapper .card.auth-login-card .creative-card-body,
.auth-creative-wrapper .creative-card-wrapper .card.auth-register-card .creative-card-body {
    height: auto;
}

/* Login page: form spacing, Or divider, sign-up link */
.auth-login-body h2 {
    font-size: 1.25rem;
}
.auth-login-body h4,
.auth-login-body p {
    font-size: 0.875rem;
}
.auth-login-body .form-control {
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
}
.auth-login-body .btn-lg {
    padding: 0.65rem 1.25rem;
}
.auth-login-body .mt-5:first-of-type {
    margin-top: 1.5rem !important;
}
.auth-login-body .w-100.mt-5 {
    margin-top: 1.75rem !important;
}
.auth-login-body .w-100.mt-5 .mb-4 {
    margin-bottom: 0.875rem !important;
}
.auth-login-body .w-100.mt-5 .d-flex {
    margin-bottom: 0.5rem;
}
.auth-login-body .text-muted.mt-5 {
    margin-top: 1.25rem !important;
}
/* Social media buttons - larger, clearer */
.auth-creative-wrapper .btn-light-brand {
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-creative-wrapper .btn-light-brand svg,
.auth-creative-wrapper .btn-light-brand i,
.auth-creative-wrapper .btn-light-brand [data-feather] {
    width: 24px !important;
    height: 24px !important;
}
.auth-register-body .form-control-sm {
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
}

.auth-register-body .form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.auth-register-body .form-control:focus {
    border-color: var(--sidalhag-primary);
}

.auth-register-body .mb-2 {
    margin-bottom: 1rem !important;
}

.auth-register-body .phone-row {
    margin-bottom: 1.25rem !important;
}

.auth-register-body .phone-fields-shared .phone-row-inner .form-label {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

@media (min-width: 992px) {
    .auth-register-body {
        padding: 1.75rem 2rem 2rem !important;
    }
}

.auth-register-body .mt-3 {
    margin-top: 1.25rem !important;
}

.auth-register-body .btn-primary {
    padding: 0.65rem 1.25rem;
    font-weight: 600;
}

/* Account type selector - cleaner look */
.auth-register-body #type-advertiser-wrap,
.auth-register-body #type-client-wrap {
    transition: all 0.2s ease;
}

.auth-register-body .phone-fields-shared .phone-row {
    margin-bottom: 0.75rem;
}

/* Registration modal: keep country code compact, give number input the space */
.auth-creative-wrapper .auth-modal-phone .phone-sudan-cell {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    direction: ltr;
}

.auth-creative-wrapper .auth-modal-phone .phone-sudan-prefix {
    width: 92px;
    min-width: 92px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1;
}

.auth-creative-wrapper .auth-modal-phone .phone-number-input.auth-modal-input {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 20px;
    text-align: left;
    direction: ltr;
}

@media (max-width: 576px) {
    .auth-creative-wrapper .auth-modal-phone .phone-sudan-cell {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 8px;
    }

    .auth-creative-wrapper .auth-modal-phone .phone-sudan-prefix {
        width: 78px;
        min-width: 78px;
        font-size: 16px;
    }

    .auth-creative-wrapper .auth-modal-phone .phone-number-input.auth-modal-input {
        min-height: 52px;
        font-size: 18px;
    }
}

/* Phone fields shared: flag + country code in one box (register/signup) */
.auth-creative-wrapper .phone-fields-shared .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #002f34;
}
.auth-creative-wrapper .phone-fields-shared .phone-code-number-wrap {
    display: flex;
    gap: 8px;
    align-items: stretch;
    flex-direction: row;
    direction: ltr;
}
.auth-creative-wrapper .phone-fields-shared .phone-code-number-wrap .phone-number-input {
    text-align: left;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-cell {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background: #fff;
    direction: ltr;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-cell:focus-within {
    border-color: var(--sidalhag-primary);
    box-shadow: 0 0 0 0.2rem rgba(19, 147, 105, 0.15);
}
.auth-creative-wrapper .phone-fields-shared .phone-country-picker {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 130px;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px 0 12px;
    cursor: pointer;
    flex: 1;
    min-height: 44px;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-trigger:hover {
    background: #f7f8f8;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-code {
    font-weight: 600;
    font-size: 14px;
    color: #002f34;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: auto;
    margin-right: 4px;
    font-size: 11px;
    color: #5b7b7d;
    background: #f0f4f5;
    border-radius: 6px;
    transition: transform 0.2s, background 0.2s;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-trigger:hover .phone-country-chevron {
    background: #e8ebeb;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-picker.open .phone-country-chevron {
    transform: rotate(180deg);
    background: rgba(19, 147, 105, 0.1);
    color: var(--sidalhag-primary);
}
.auth-creative-wrapper .phone-fields-shared .phone-country-select {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.auth-creative-wrapper .phone-fields-shared .phone-flag-img,
.auth-creative-wrapper .phone-fields-shared .phone-option-flag {
    flex-shrink: 0;
    width: 24px;
    height: 18px;
    object-fit: contain;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    z-index: 10050;
    overflow: hidden;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-dropdown.open {
    display: block;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-search-wrap {
    padding: 16px 14px;
    border-bottom: 2px solid #e8e8e8;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-search {
    width: 100%;
    min-height: 52px;
    padding: 18px 20px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 18px;
    outline: none;
    box-sizing: border-box;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-search:focus {
    border-color: var(--sidalhag-primary);
}
.auth-creative-wrapper .phone-fields-shared .phone-country-options {
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-option:hover {
    background: #f0f4f5;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-option .phone-option-flag {
    width: 20px;
    height: 15px;
    object-fit: contain;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-option .phone-option-code {
    font-weight: 600;
    color: #002f34;
    min-width: 42px;
    font-size: 13px;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-option .phone-option-name {
    color: #5b7b7d;
    font-size: 13px;
}
.auth-creative-wrapper .phone-fields-shared .phone-country-empty {
    padding: 16px;
    text-align: center;
    color: #5b7b7d;
    font-size: 14px;
}

/* Dropdown appended to body - must work when outside auth wrapper */
.phone-country-dropdown {
    display: none;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    overflow: hidden;
}
.phone-country-dropdown.open {
    display: block !important;
}
.phone-country-search-wrap {
    padding: 16px 14px;
    border-bottom: 2px solid #e8e8e8;
}
.phone-country-search {
    width: 100%;
    min-height: 52px;
    padding: 18px 20px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 18px;
    outline: none;
    box-sizing: border-box;
}
.phone-country-search:focus {
    border-color: var(--sidalhag-primary, #139369);
}
.phone-country-options {
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
}
.phone-country-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}
.phone-country-option:hover {
    background: #f0f4f5;
}
.phone-country-option .phone-option-flag {
    width: 20px;
    height: 15px;
    object-fit: contain;
}
.phone-country-option .phone-option-code {
    font-weight: 600;
    color: #002f34;
    min-width: 42px;
    font-size: 13px;
}
.phone-country-option .phone-option-name {
    color: #5b7b7d;
    font-size: 13px;
}
.phone-country-empty {
    padding: 16px;
    text-align: center;
    color: #5b7b7d;
    font-size: 14px;
}

.auth-creative-wrapper .phone-fields-shared .phone-number-input {
    flex: 1;
    min-width: 0;
}
.auth-creative-wrapper .phone-fields-shared .phone-row-inner .form-label {
    display: block;
    margin-bottom: 6px;
}

/* Native select mode (register page) - PC: code box wider, code + country shown, balanced fonts */
.phone-fields-shared.phone-fields-native .phone-native-cell {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
    max-width: 100%;
    direction: ltr;
}
.phone-fields-shared.phone-fields-native .phone-native-code-box {
    flex: 1 1 50%;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fafbfc;
    direction: ltr;
    overflow: hidden;
}
.phone-fields-shared.phone-fields-native .phone-native-code-box:focus-within {
    border-color: var(--sidalhag-primary, #139369);
}
.phone-fields-shared.phone-fields-native .phone-native-search-inline {
    flex: 0 1 auto;
    min-width: 70px;
    max-width: 120px;
    padding: 4px 8px;
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    color: #6b7280;
}
.phone-fields-shared.phone-fields-native .phone-native-search-inline::placeholder {
    color: #9ca3af;
}
.phone-fields-shared.phone-fields-native .phone-native-search-inline:focus {
    color: #002f34;
}
.phone-fields-shared.phone-fields-native .phone-native-flag {
    flex-shrink: 0;
    width: 16px;
    height: 12px;
    object-fit: contain;
}
.phone-fields-shared.phone-fields-native .phone-native-select {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 4px 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #002f34;
    direction: ltr;
    text-align: left;
}
.phone-fields-shared.phone-fields-native .phone-native-cell .phone-number-input {
    flex: 1 1 50%;
    min-width: 0;
    font-size: 0.9rem;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    direction: ltr;
    text-align: left;
}

/* Auth form actions - Save + Cancel buttons */
.auth-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-form-actions .auth-btn-submit {
    flex: 1;
    min-width: 140px;
}

.auth-form-actions .auth-btn-cancel {
    flex: 1;
    min-width: 100px;
    text-decoration: none;
}

.auth-form-actions .auth-btn-cancel:hover {
    color: #fff;
}

/* Register step 2: keep previous button aligned with primary action */
.register-step2-actions {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) minmax(170px, 1fr);
    gap: 12px;
    align-items: stretch;
}

.register-step2-actions .auth-btn-cancel,
.register-step2-actions .auth-btn-submit {
    width: 100%;
    min-width: 0;
}

/* Register & Login page mobile optimization */
@media (max-width: 991px) {
    .auth-creative-wrapper .creative-card-wrapper .card.auth-register-card,
    .auth-creative-wrapper .creative-card-wrapper .card.auth-login-card {
        height: auto;
        min-height: auto;
        max-height: none;
        overflow: visible !important;
    }

    .auth-creative-wrapper .creative-card-wrapper .card.auth-register-card .row,
    .auth-creative-wrapper .creative-card-wrapper .card.auth-login-card .row {
        height: auto;
    }

    .auth-creative-wrapper .creative-card-wrapper .card.auth-register-card .creative-card-body,
    .auth-creative-wrapper .creative-card-wrapper .card.auth-login-card .creative-card-body {
        height: auto;
    }

    .auth-creative-wrapper .creative-card-wrapper .card.auth-register-card .auth-side-panel,
    .auth-creative-wrapper .creative-card-wrapper .card.auth-login-card .auth-side-panel {
        display: none;
    }

    .auth-creative-wrapper .creative-card-wrapper .card.auth-register-card .col-lg-6.order-1,
    .auth-creative-wrapper .creative-card-wrapper .card.auth-login-card .col-lg-6.order-1 {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .auth-login-body {
        padding: 1.25rem 1rem 2rem;
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }

    .auth-login-body h2 {
        font-size: 1.25rem !important;
    }

    .auth-login-body h4,
    .auth-login-body p {
        font-size: 0.85rem !important;
    }

    .auth-login-body .mb-4 {
        margin-bottom: 0.875rem !important;
    }

    .auth-login-body .mb-3 {
        margin-bottom: 0.75rem !important;
    }

    .auth-login-body .mt-5:first-of-type {
        margin-top: 1.25rem !important;
    }

    .auth-login-body .w-100.mt-5 {
        margin-top: 1.5rem !important;
    }

    .auth-login-body .text-muted.mt-5 {
        margin-top: 1rem !important;
    }

    .auth-register-body {
        padding: 1.25rem 1rem 2rem;
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    }

    .auth-register-body .mb-2 {
        margin-bottom: 0.75rem !important;
    }

    .auth-register-body h2 {
        font-size: 1.25rem !important;
    }

    .auth-register-body h4,
    .auth-register-body p {
        font-size: 0.85rem !important;
    }

    .auth-register-body #type-advertiser-wrap,
    .auth-register-body #type-client-wrap {
        min-height: 48px !important;
        padding: 0.5rem !important;
    }

    .auth-form-actions {
        margin-top: 1rem !important;
        padding-top: 0.5rem;
        gap: 10px;
    }

    .auth-form-actions .auth-btn-submit,
    .auth-form-actions .auth-btn-cancel {
        min-width: 0;
        padding: 12px 20px;
        font-weight: 600;
    }

    .auth-back-btn {
        top: max(12px, env(safe-area-inset-top));
        right: 12px;
        padding: 8px 14px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .auth-creative-wrapper .creative-card-wrapper {
        margin: 0.5rem;
        margin-top: 3rem;
    }

    .auth-register-body,
    .auth-login-body {
        padding: 1rem 0.875rem 1.5rem;
    }

    .auth-form-actions {
        flex-direction: column;
    }

    .auth-form-actions .auth-btn-submit,
    .auth-form-actions .auth-btn-cancel {
        width: 100%;
    }

    .register-step2-actions {
        grid-template-columns: 1fr;
    }

    /* Phone view (≤576px): smaller fonts, code visible, balanced layout */
    .phone-fields-shared.phone-fields-native .phone-native-cell {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 6px;
    }
    .phone-fields-shared.phone-fields-native .phone-native-code-box {
        flex: 1 1 50%;
        min-width: 0;
        padding: 6px 10px;
    }
    .phone-fields-shared.phone-fields-native .phone-native-search-inline {
        flex: 1 1 auto;
        min-width: 80px;
        max-width: none;
        font-size: 0.8125rem;
        padding: 4px 6px;
    }
    .phone-fields-shared.phone-fields-native .phone-native-select {
        flex: 1 1 auto;
        min-width: 70px;
        max-width: none;
        font-size: 0.75rem;
        padding: 4px 4px;
    }
    .phone-fields-shared.phone-fields-native .phone-native-flag {
        width: 14px;
        height: 10px;
    }
    .phone-fields-shared.phone-fields-native .phone-native-cell .phone-number-input {
        flex: 1 1 45%;
        min-width: 0;
        font-size: 0.8125rem;
    }
}

@media (max-width: 768px) {
    .phone-fields-shared.phone-fields-native .phone-native-cell {
        min-width: 0;
    }
    .phone-fields-shared.phone-fields-native .phone-native-code-box {
        flex: 1 1 55%;
        min-width: 160px;
        overflow: hidden;
        padding: 6px 10px;
    }
    .phone-fields-shared.phone-fields-native .phone-native-search-inline {
        min-width: 100px;
    }
    .phone-fields-shared.phone-fields-native .phone-native-cell .phone-number-input {
        flex: 1 1 45%;
        min-width: 0;
        font-size: 0.8125rem;
    }
    .phone-fields-shared.phone-fields-native .phone-native-search-inline {
        flex: 1 1 100%;
        min-width: 90px;
        font-size: 0.8125rem;
    }
    .phone-fields-shared.phone-fields-native .phone-native-select {
        flex: 1 1 auto;
        min-width: 85px;
        font-size: 0.8125rem;
    }
}
