/**
 * UNIDET v2 — Pending Popup (COMPACT)
 * Fichier : /unidet-v2/auth/assets/pending-popup.css
 */

/* ═══════════════════════════════════════════════════════════
   Container global
   ═══════════════════════════════════════════════════════════ */
.upp-popup {
    border-radius: 18px !important;
    padding: 24px 26px 20px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-shadow: 0 24px 60px rgba(10, 14, 23, 0.22) !important;
    overflow: visible !important;
    max-width: 480px !important;
}

.upp {
    text-align: center;
    color: #0a0e17;
}

/* ═══════════════════════════════════════════════════════════
   Icône enveloppe
   ═══════════════════════════════════════════════════════════ */
.upp-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2.5px solid #fcd34d;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(252, 211, 77, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   Titres + textes
   ═══════════════════════════════════════════════════════════ */
.upp-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #0a0e17;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.upp-text {
    margin: 0 0 8px;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
}

.upp-email {
    color: #0a0e17;
    font-weight: 800;
    word-break: break-all;
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════
   Lien "Modifier l'email"
   ═══════════════════════════════════════════════════════════ */
.upp-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a0824d;
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 7px;
    transition: all 0.15s ease;
    margin-bottom: 14px;
}

.upp-edit-link:hover {
    background: #fef3c7;
    color: #92400e;
}

.upp-edit-link svg {
    width: 11px;
    height: 11px;
}

/* ═══════════════════════════════════════════════════════════
   Blocs info (Prochaine étape / Astuce) — CENTRÉS + SANS bordure
   ═══════════════════════════════════════════════════════════ */
.upp-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    line-height: 1.45;
    border: none !important;
    border-left: none !important;
}

.upp-block-next {
    background: #fef9e7 !important;
}

.upp-block-tip {
    background: #eff6ff !important;
}

.upp-block-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    width: 100%;
}

.upp-block-icon {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.upp-block-content {
    width: 100%;
}

.upp-block-title {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 800;
    margin: 0;
    color: #0a0e17;
    letter-spacing: -0.1px;
}

.upp-block-next .upp-block-title { color: #78350f; }
.upp-block-tip  .upp-block-title { color: #1e40af; }

.upp-block-content p {
    margin: 3px 0 0;
    font-size: 11.5px;
    color: #4b5563;
    line-height: 1.45;
    text-align: center;
}

.upp-block-next .upp-block-content p { color: #92400e; }
.upp-block-tip  .upp-block-content p { color: #1e40af; }

.upp-block-content strong {
    font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════
   Bouton "Renvoyer l'email"
   ═══════════════════════════════════════════════════════════ */
.upp-btn-resend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 9px 16px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    color: #0a0e17;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 8px;
    margin-bottom: 6px;
    min-height: 40px;
}

.upp-btn-resend:hover:not(:disabled):not(.is-disabled) {
    background: #0a0e17;
    border-color: #0a0e17;
    color: #d4a373;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 14, 23, 0.15);
}

.upp-btn-resend:hover:not(:disabled):not(.is-disabled) svg {
    stroke: #d4a373;
}

.upp-btn-resend:disabled,
.upp-btn-resend.is-disabled,
.upp-btn-resend:disabled:hover,
.upp-btn-resend.is-disabled:hover,
.upp-btn-resend:disabled:focus,
.upp-btn-resend.is-disabled:focus {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.upp-btn-resend:disabled svg,
.upp-btn-resend.is-disabled svg {
    stroke: #cbd5e1 !important;
}

.upp-btn-resend svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   Hint de cooldown
   ═══════════════════════════════════════════════════════════ */
.upp-resend-hint {
    margin: 0 0 10px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-align: center;
    min-height: 14px;
    display: block !important;
}

.upp-resend-hint.is-success {
    color: #10b981;
}

.upp-resend-hint.is-error {
    color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════
   Bouton principal "Aller à la connexion"
   ═══════════════════════════════════════════════════════════ */
.upp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 11px 20px;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 4px 14px rgba(10, 14, 23, 0.22);
    margin-top: 6px;
    min-height: 42px;
    letter-spacing: 0.1px;
}

.upp-btn-primary:hover {
    background: linear-gradient(135deg, #d4a373 0%, #c09260 100%);
    color: #0a0e17;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 163, 115, 0.35);
}

.upp-btn-primary svg {
    width: 13px;
    height: 13px;
    transition: transform 0.2s ease;
}

.upp-btn-primary:hover svg {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════
   Spinner (chargement)
   ═══════════════════════════════════════════════════════════ */
.upp-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(10, 14, 23, 0.15);
    border-top-color: #0a0e17;
    border-radius: 50%;
    animation: uppSpin 0.7s linear infinite;
}

@keyframes uppSpin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .upp-popup {
        padding: 20px 18px 16px !important;
    }
    .upp-title {
        font-size: 17px;
    }
    .upp-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        margin-bottom: 10px;
    }
    .upp-block {
        padding: 9px 12px;
    }
}

/* ═══════════════════════════════════════════════════════════
   🎯 Ligne d'aide "Rien reçu ?" — sous le bouton Renvoyer
   ═══════════════════════════════════════════════════════════ */
.upp-help-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0 14px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 9px;
    font-size: 11.5px;
    color: #475569;
    line-height: 1.5;
    font-weight: 600;
    text-align: left;
}

.upp-help-line svg {
    width: 14px;
    height: 14px;
    min-width: 14px;
    color: #94a3b8;
    margin-top: 1px;
    flex-shrink: 0;
}

.upp-help-line span {
    flex: 1;
    min-width: 0;
}

.upp-help-line strong {
    color: #0a0e17;
    font-weight: 800;
}

.upp-help-line a {
    color: #a0824d;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.upp-help-line a:hover {
    color: #78350f;
}