.password-requirements {
    margin-top: 10px;
    font-size: 0.875rem;
}

.requirement {
    display: flex;
    align-items: center;
    margin: 5px 0;
    color: #666;
    transition: color 0.3s ease;
}

.requirement.met {
    color: #10b981;
}

.requirement:not(.met) {
    color: #64748b;
}

.check-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    color: transparent;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    transition: all 0.2s ease;
}

.requirement.met .check-icon {
    background: #10b981;
    color: white;
}

.requirement:not(.met) .check-icon {
    background: #e2e8f0;
    color: transparent;
}



.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
    min-height: 1.2rem;
}


.message-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.message-box.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.message-box.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.message-box.info {
    background: #dbeafe;
    color: #1e3a8a;
    border: 1px solid #3b82f6;
}


.info-box.warning {
    background: #fef3c7;
    border-color: #f59e0b;
}

.info-box.warning .info-title {
    color: #92400e;
}

.info-box.warning .info-text {
    color: #78350f;
}


.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}


.info-box .submit-btn {
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    width: auto;
    padding: 12px 24px;
}


@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


@media (max-width: 480px) {
    .password-requirements {
        font-size: 0.8rem;
    }

    .requirement {
        margin: 3px 0;
    }

    .check-icon {
        font-size: 0.9rem;
        margin-right: 6px;
    }
}


.form-input.valid {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}


.form-input.error {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-box {
    background: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
}

.modal-box p {
    font-size: 16px;
    margin-bottom: 16px;
}

.modal-box.success p {
    color: #065f46;
}

.modal-box.error p {
    color: #000000;
}

.modal-box.success button {
    background: #6366f1;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.modal-box.error button {
    background: #c20000;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.modal-box.success button:hover {
    background: #5856eb;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-box.error button:hover {
    background: #940000;
}

/* Estilos para modales de tipo warning con botones diferenciados */
.modal-box.warning .modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-box.warning button:first-child {
    background: #ef4444; /* Rojo para acción destructiva */
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.modal-box.warning button:last-child {
    background: white; /* Blanco para cancelar */
    color: #374151;
    border: 1px solid #d1d5db; /* Borde gris */
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.modal-box.warning button:first-child:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.modal-box.warning button:last-child:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}