/* Unified phone row: country code + number in one control */
.auth-phone-field {
    margin-bottom: 0.5rem;
}
.auth-phone-field__label {
    display: block;
    margin-bottom: 0.4rem;
    padding-left: 0.12rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}
.auth-phone-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: calc(3.5rem + 2px);
    border: 1px solid #d9dfec;
    border-radius: 0.375rem;
    background: #fff;
    overflow: visible;
    position: relative;
    z-index: 1;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.auth-phone-input-group:focus-within,
.auth-phone-input-group.is-dial-open {
    border-color: #eb662b;
    box-shadow: 0 0 0 0.2rem rgba(235, 102, 43, 0.18);
    z-index: 20;
}
.auth-phone-dial-picker {
    position: relative;
    flex: 0 0 5.75rem;
    max-width: 5.75rem;
    border-right: 1px solid #e5e7eb;
    background: #f8fafc;
}
.auth-phone-dial__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.15rem;
    width: 100%;
    height: 100%;
    min-height: calc(3.5rem + 2px);
    margin: 0;
    padding: 0 0.45rem 0 0.65rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
    cursor: pointer;
}
.auth-phone-dial__btn:focus {
    outline: none;
    background: #f1f5f9;
}
.auth-phone-dial__chevron {
    font-size: 1.1rem;
    color: #64748b;
    transition: transform 0.15s ease;
}
.auth-phone-dial-picker.is-open .auth-phone-dial__chevron {
    transform: rotate(180deg);
}
.auth-phone-dial__panel {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1060;
    width: max(100%, 16.5rem);
    max-width: min(20rem, calc(100vw - 2rem));
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}
.auth-phone-dial__panel[hidden] {
    display: none !important;
}
.auth-phone-dial__search-wrap {
    position: relative;
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid #eef2f7;
    background: #fafbfc;
}
.auth-phone-dial__search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #94a3b8;
    pointer-events: none;
}
.auth-phone-dial__search {
    width: 100%;
    margin: 0;
    padding: 0.45rem 0.55rem 0.45rem 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.3rem;
    font-size: 0.8125rem;
    line-height: 1.25;
    color: #0f172a;
    background: #fff;
}
.auth-phone-dial__search:focus {
    outline: none;
    border-color: #eb662b;
    box-shadow: 0 0 0 0.15rem rgba(235, 102, 43, 0.15);
}
.auth-phone-dial__list {
    max-height: 150px;
    margin: 0;
    padding: 0.2rem 0;
    list-style: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.auth-phone-dial__empty {
    margin: 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
    color: #94a3b8;
    text-align: center;
}
.auth-phone-dial__empty[hidden] {
    display: none !important;
}
.auth-phone-dial__option.is-hidden {
    display: none !important;
}
.auth-phone-dial__option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.25;
    color: #334155;
    cursor: pointer;
}
.auth-phone-dial__option:hover,
.auth-phone-dial__option.is-selected {
    background: #fff7ed;
}
.auth-phone-dial__option-code {
    flex: 0 0 auto;
    min-width: 2.75rem;
    font-weight: 700;
    color: #0f172a;
}
.auth-phone-dial__option-label {
    flex: 1 1 auto;
    min-width: 0;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.auth-phone-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0.85rem 0.9rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 1rem;
    line-height: 1.25;
    color: #111827;
}
.auth-phone-input::placeholder {
    color: #9ca3af;
}
.auth-phone-input:focus {
    outline: none;
    box-shadow: none;
}
@media (max-width: 575.98px) {
    .auth-phone-dial-picker {
        flex: 0 0 5.25rem;
        max-width: 5.25rem;
    }
    .auth-phone-dial__btn {
        padding-left: 0.5rem;
        font-size: 0.875rem;
    }
    .auth-phone-dial__panel {
        width: max(100%, 15rem);
    }
    .auth-phone-dial__list {
        max-height: min(150px, 42vh);
    }
    .auth-phone-input {
        padding: 0.8rem 0.7rem;
        font-size: 0.9375rem;
    }
}
@media (max-height: 500px) {
    .auth-phone-dial__list {
        max-height: min(120px, 38vh);
    }
}
