/* Composants formulaires SHERIN — thème Cuba */
.sherin-locale-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    box-shadow: 0 2px 12px rgba(115, 102, 255, 0.15);
}

.sherin-locale-switcher a {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: #7366ff;
    text-decoration: none;
}

.sherin-locale-switcher a.is-active,
.sherin-locale-switcher a:hover,
.sherin-locale-switcher a:focus {
    background: #7366ff;
    color: #fff;
    outline: 2px solid #a927f9;
    outline-offset: 2px;
}

.sherin-phone-input,
.smart-phone-input {
    display: flex;
    align-items: stretch;
    position: relative;
}

.sherin-phone-country-btn,
.smart-phone-country-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #efefef;
    border-right: 0;
    border-radius: 0.375rem 0 0 0.375rem;
    background: #f8f7ff;
    padding: 0.45rem 0.65rem;
    cursor: pointer;
    min-width: 5.5rem;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.sherin-phone-country-btn:focus,
.smart-phone-country-btn:focus {
    outline: 2px solid #7366ff;
    outline-offset: 1px;
    z-index: 2;
}

.sherin-phone-input .form-control[data-sherin-phone-national],
.smart-phone-input .form-control.smart-phone-display {
    border-radius: 0 0.375rem 0.375rem 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: normal;
    font-variant-numeric: normal;
    font-feature-settings: normal;
}

.sherin-phone-dropdown,
.smart-phone-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1050;
    min-width: 280px;
    max-height: 320px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #efefef;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(8, 21, 66, 0.12);
}

.sherin-phone-dropdown[hidden],
.smart-phone-dropdown[hidden] {
    display: none !important;
}

.sherin-phone-search,
.smart-phone-search {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #efefef;
    padding: 0.5rem 0.75rem;
}

.smart-phone-favorites {
    max-height: 140px;
    overflow-y: auto;
}

.smart-phone-divider {
    height: 1px;
    background: #efefef;
    margin: 0;
}

.sherin-phone-list,
.smart-phone-list {
    max-height: 160px;
    overflow-y: auto;
}

.sherin-phone-country-item,
.smart-phone-country-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0.45rem 0.75rem;
    text-align: left;
    cursor: pointer;
}

.sherin-phone-country-item:hover,
.sherin-phone-country-item:focus,
.smart-phone-country-item:hover,
.smart-phone-country-item:focus {
    background: #f0eeff;
    outline: none;
}

.sherin-phone-country-name,
.smart-phone-country-name {
    flex: 1 1 auto;
}

.sherin-phone-dial,
.smart-phone-dial {
    color: #7366ff;
    font-weight: 600;
    font-size: 0.85rem;
}

.smart-phone-field--compact .form-text {
    display: none;
}

.smart-phone-field--bare {
    width: 100%;
}

.smart-phone-field--bare .smart-phone-input {
    width: 100%;
}

/* Mot de passe — thème Cuba (.show-hide + icône œil) */
.login-main .theme-form .form-group .show-hide span:before,
.login-main .theme-form .form-group .show-hide span.show:before,
.form-group .show-hide span:before,
.form-group .show-hide span.show:before {
    content: none !important;
}

.form-group .show-hide span i {
    font-size: 15px;
    color: var(--theme-deafult, #7366ff);
    line-height: 1;
}

.form-group .show-hide span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
}

.form-group .show-hide span:focus {
    outline: 2px solid #7366ff;
    outline-offset: 2px;
    border-radius: 4px;
}

.trial-signup-form-wrap .form-group,
.forget-password-wrap .form-group,
.sherin-field.form-group {
    position: relative;
}

.sherin-password-meter {
    height: 4px;
    border-radius: 999px;
    background: #e9ecef;
    margin-top: 0.35rem;
    overflow: hidden;
    position: relative;
}

.sherin-password-meter::after {
    content: '';
    display: block;
    height: 100%;
    width: calc(var(--sherin-pwd-score, 0) / 6 * 100%);
    transition: width 0.2s ease, background 0.2s ease;
}

.sherin-pwd-very-weak::after { background: #dc3545; }
.sherin-pwd-weak::after { background: #fd7e14; }
.sherin-pwd-medium::after { background: #ffc107; }
.sherin-pwd-strong::after { background: #28a745; }
.sherin-pwd-very-strong::after { background: #7366ff; }

.sherin-password-meter-label {
    font-size: 0.75rem;
    margin-top: 0.2rem;
    color: #6c757d;
}

.sherin-field-feedback {
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control:focus {
    border-color: #7366ff;
    box-shadow: 0 0 0 0.2rem rgba(115, 102, 255, 0.2);
}

[dir="rtl"] .sherin-locale-switcher {
    right: auto;
    left: 1rem;
}

[dir="rtl"] .sherin-phone-country-btn,
[dir="rtl"] .smart-phone-country-btn {
    border-right: 1px solid #efefef;
    border-left: 0;
    border-radius: 0 0.375rem 0.375rem 0;
}

[dir="rtl"] .sherin-phone-input .form-control[data-sherin-phone-national],
[dir="rtl"] .smart-phone-input .form-control.smart-phone-display {
    border-radius: 0.375rem 0 0 0.375rem;
}
