/* Overlay chargement global */
.eb-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 14, 26, 0.42);
    backdrop-filter: blur(3px);
    transition: opacity 0.25s ease;
}

.eb-loader-overlay.is-active {
    display: flex;
}

.eb-loader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 36px;
    border-radius: 16px;
    background: var(--w, #fff);
    border: 1px solid var(--bo, #e5e7eb);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.eb-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(129, 140, 248, 0.25);
    border-top-color: var(--br, #6366f1);
    animation: eb-spin 0.75s linear infinite;
}

.eb-loader-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--tx, #1e1b4b);
}

@keyframes eb-spin {
    to { transform: rotate(360deg); }
}

.eb-fade-panel {
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.eb-fade-panel.is-loading {
    opacity: 0.55;
    transform: translateY(4px);
    pointer-events: none;
}

.eb-auth-panel .eb-alert {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
}

.eb-auth-panel .eb-alert-ok {
    background: var(--okl, #ecfdf5);
    color: var(--ok, #059669);
    border: 1px solid var(--okb, #a7f3d0);
}

.eb-auth-panel .eb-alert-wa {
    background: var(--wal, #fffbeb);
    color: #b45309;
    border: 1px solid #fde68a;
}

.eb-auth-panel .eb-alert-er {
    background: var(--erl, #fef2f2);
    color: var(--er, #dc2626);
    border: 1px solid var(--erb, #fecaca);
}

.eb-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.eb-auth-actions .btn-p,
.eb-auth-actions .btn-g {
    flex: 1;
    min-width: 140px;
    text-align: center;
    justify-content: center;
}

.eb-resend-muted {
    font-size: 12px;
    color: var(--mu, #6b7280);
    margin-top: 8px;
}

.eb-password-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.eb-password-wrap input {
    flex: 1;
    padding-right: 42px !important;
}

.eb-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--mu, #6b7280);
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
}

.eb-password-toggle:hover {
    color: var(--br, #6366f1);
}

.eb-btn-disabled,
button:disabled.btn-p {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.eb-user-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

.eb-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    object-fit: cover;
}
