/* The stand-alone pages (layouts.guest: sign-in, sign-up, social sign-in…)
   are Tailwind and the UI kit, so the palette (theme-palette.css) themes them
   (CORE_TAILWIND4_PLAN P7.2). What is left here is the phone number country
   picker (intl-tel-input), whose markup is the library's own: made to look
   like the fields around it, light and dark. */

.iti { width: 100%; }
.iti__flag-container { padding: 0; }
.iti__selected-flag { padding: 0 8px 0 12px; }
.iti__country-list {
    width: 100% !important;
    min-width: inherit !important;
    max-width: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    z-index: 1080 !important;
    margin-top: 4px;
    padding: 4px 0;
    font-size: 1rem;
    transition: box-shadow 0.2s;
}
.iti__country-list .iti__country {
    padding: 8px 18px 8px 16px;
    border-radius: 8px;
    margin: 2px 6px;
    transition: background 0.15s;
}
.iti__country-list .iti__country:hover,
.iti__country-list .iti__country.iti__highlight { background: #f0f4ff; color: #2a3b8f; }
.iti__country-list .iti__divider { margin: 4px 0; }
.dial-code-display { margin-left: 4px; font-size: 0.9rem; color: #666; font-weight: 500; }

html.dark .iti__country-list { background: #1e2a45; border-color: #3b4c6e; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); }
html.dark .iti__country-list .iti__country:hover,
html.dark .iti__country-list .iti__country.iti__highlight { background: #2b3a5a; color: #bfdbfe; }
html.dark .iti__dial-code,
html.dark .dial-code-display { color: #94a3b8; }
