.ui-card .ui-card-body {
    padding: 1.15rem !important;
}

.ui-card .ui-card-subtitle {
    text-align: center !important;
    color: black !important;
}

.ui-card .ui-card-title {
    text-align: center !important;
}

.ui-panelgrid .ui-panelgrid-cell {
    padding: 0.25rem !important;
}

.ui-card .ui-card-content {
    padding: 1rem 0 0 !important;
}

.password-reset-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.reset-card {
    width: 100%;
    max-width: 500px;
    border-radius: 20px !important;
    border: 1px solid rgba(131, 23, 23, 0.2) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reset-card .p-card-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #831717 0%, #a31f1f 100%);
    border-radius: 50%;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    box-shadow: 0 0 20px rgba(131, 23, 23, 0.4);

}

.reset-card .p-card-title {
    color: #1a1a1a !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
}

.reset-card .p-card-subtitle {
    color: #666 !important;
    font-size: 15px !important;
    line-height: 1.6;
}

.info-card {
    background: rgba(131, 23, 23, 0.05);
    border: 1px solid rgba(131, 23, 23, 0.2);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 25px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.info-card i {
    color: #831717;
    font-size: 18px;
}

.info-card p {
    margin: 0;
    font-size: 14px;
    color: black;
    text-align: left;
}

/* === CHAMPS UNIFORMISÉS === */
/* Ligne des champs téléphone */
.phone-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.phone-row .select-country {
    flex: 1;
    /* 1/3 */
}

.phone-row .input-phone {
    flex: 2;
    /* 2/3 */
}

/* Uniformisation visuelle conservée */
.input-custom,
.p-selectonemenu,
.p-inputtext {
    width: 100% !important;
    padding: 14px 20px !important;
    border-radius: 14px !important;
    border: 2px solid #e0e0e0 !important;
    background: #f8f8f8 !important;
    font-size: 16px !important;
    color: #1a1a1a !important;
    transition: all 0.3s;
    box-sizing: border-box;
}

.p-inputtext:focus,
.p-selectonemenu:focus {
    background: #fff !important;
    border-color: #831717 !important;
    box-shadow: 0 0 0 4px rgba(131, 23, 23, 0.1) !important;
}


/* === BOUTONS === */
.btn-primary-custom {
    background: linear-gradient(135deg, #831717 0%, #a31f1f 100%) !important;
    border: none !important;
    color: white !important;
    padding: 16px 24px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    box-shadow: 0 6px 20px rgba(131, 23, 23, 0.4) !important;
    transition: all 0.3s !important;
    width: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(131, 23, 23, 0.6);
}

.btn-secondary-custom {
    background: #f5f5f5 !important;
    border: 2px solid #e0e0e0 !important;
    color: #4a4a4a !important;
    padding: 16px 24px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    width: 100%;
    transition: all 0.3s;
}

.btn-secondary-custom:hover {
    background: #e8e8e8 !important;
    border-color: #d0d0d0 !important;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.disclaimer {
    text-align: center;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.disclaimer p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    /* ✅ permet le retour à la ligne sur petit écran */
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

.otp-input:focus {
    border-color: #007ad9;
    box-shadow: 0 0 5px #007ad9;
}

/* ✅ Adaptation sur mobile */
@media (max-width: 600px) {
    .otp-input {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .otp-container {
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .otp-input {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .otp-container {
        gap: 6px;
    }
}

.resend-container {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.resend-link[disabled] {
    color: gray !important;
    cursor: default;
    text-decoration: none;
}

.resend-link {
    color: #007ad9 !important;
    margin-left: 5px;
    font-weight: bold;
    text-decoration: none;
}

.resend-link:hover:not([disabled]) {
    text-decoration: underline;
    cursor: pointer;
}