/* ------------------ Estilos Login- Reset Password - Recuperar Password ------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f1f8f4 0%, #e8f5e9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(27, 94, 32, 0.15);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
    border-top: 5px solid #1b5e20;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-header {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.login-header .header-text h2,
.login-header .header-text p {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.logo-header {
    width: 110px;
    height: 110px;
    border-radius: 25%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-text h2 {
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 700;
}

.header-text p {
    opacity: 0.9;
    font-size: 14px;
    margin: 0;
}

.login-body {
    padding: 35px 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1b5e20;
    font-size: 14px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #2e7d32;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.input-with-icon input:focus {
    border-color: #2e7d32;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.input-with-icon input.has-value {
    border-color: #2e7d32;
    background-color: #f8fff9;
}

.show-password-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.show-password-container input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.show-password-container label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    font-weight: normal;
}

/* Mensajes de éxito y error */
.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #28a745;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #dc3545;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botones */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 94, 32, 0.25);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-volver {
    width: 100%;
    padding: 16px;
    background: white;
    color: #2e7d32;
    border: 2px solid #2e7d32;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    text-align: center;
}

.btn-volver:hover {
    background: #2e7d32;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 94, 32, 0.25);
}

.forgot-password {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.forgot-password a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.forgot-password a:hover {
    color: #1b5e20;
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 13px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.login-footer i {
    color: #2e7d32;
    margin-right: 5px;
}

.login-footer a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: #1b5e20;
    text-decoration: underline;
}

/* Animación de carga */
.loading {
    display: none;
    text-align: center;
    margin: 15px 0;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2e7d32;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ================== ESTILOS CAMBIO DE CONTRASEÑA OBLIGATORIO ================== */
.info-box {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(27, 94, 32, 0.3);
}

.info-box h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.6;
    opacity: 0.95;
}

.password-requirements {
    background: #f8f9fa;
    border-left: 4px solid #2e7d32;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.password-requirements strong {
    color: #1b5e20;
    display: block;
    margin-bottom: 5px;
}

.password-requirements ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.password-requirements li {
    margin: 8px 0;
    color: #495057;
}

.password-requirements i {
    color: #2e7d32;
    margin-right: 5px;
}

/* ================== ESTILOS CÉDULAS ================== */
.info-box.cedula-info {
    background: #f0f9ff;
    color: #333;
    border-left: 4px solid #1b5e20;
    padding: 15px;
    border-radius: 8px;
    margin-top: 25px;
    margin-bottom: 25px;
    box-shadow: none;
}

.info-box.cedula-info h6 {
    color: #1b5e20;
    margin-bottom: 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box.cedula-info ul {
    padding-left: 20px;
    margin: 0;
}

.info-box.cedula-info li {
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.info-box.cedula-info li:last-child {
    margin-bottom: 0;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.cedula-icon {
    text-align: center;
    margin-bottom: 25px;
}

.cedula-icon i {
    font-size: 4rem;
    color: #2e7d32;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 20px;
    border-radius: 50%;
    border: 3px solid #2e7d32;
}

.form-text {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    padding-left: 5px;
}

.title-section {
    text-align: center;
    margin-bottom: 25px;
}

.title-section h3 {
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
}

.title-section p {
    color: #666;
    font-size: 15px;
    line-height: 1.4;
}

/* Logo institucional en login */
.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    max-width: 120px;
    height: auto;
    border-radius: 15px;
    border: 3px solid #2e7d32;
    padding: 5px;
    background: white;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 480px) {
    .login-container {
        border-radius: 10px;
        max-width: 95%;
    }

    .login-header,
    .login-body {
        padding: 25px 20px;
    }

    .header-text h2 {
        font-size: 20px;
    }

    .logo-header {
        width: 90px;
        height: 90px;
    }

    .info-box h3 {
        font-size: 1.1em;
    }

    .info-box p {
        font-size: 0.9em;
    }
}

/* ================== ESTILOS MENSAJE DE BIENVENIDA / PRIMER LOGIN ================== */

.info-box {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    color: white;
    padding: 22px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 6px 18px rgba(27, 94, 32, 0.25);
    border-left: 5px solid #ffffff;
}

.info-box h3 {
    font-size: 1.35em;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}

.info-box p {
    margin: 0;
    font-size: 0.95em;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
}

/* ================== ESTILOS REQUISITOS DE CONTRASEÑA ================== */

.password-requirements {
    background: #f4faf5;
    border: 2px solid #c8e6c9;
    border-left: 5px solid #2e7d32;
    padding: 18px;
    border-radius: 10px;
    margin: 20px 0;
    animation: fadeIn 0.4s ease-out;
}

.password-requirements strong {
    color: #1b5e20;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-requirements ul {
    margin-top: 12px;
    padding-left: 20px;
}

.password-requirements li {
    margin: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    color: #3d3d3d;
    font-weight: 500;
}

.password-requirements li i {
    color: #2e7d32;
    margin-right: 8px;
}

/* Animación suave */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================== MODULO RESET PASSWORD ====================== */

.requirement {
    display: flex;
    align-items: center;
    margin: 5px 0;
    font-size: 13px;
    transition: all 0.3s ease;
}

.requirement i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.requirement.valid {
    color: #28a745;
}

.requirement.invalid {
    color: #dc3545;
}

.requirement.pending {
    color: #6c757d;
}

.validation-summary {
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 14px;
}

.validation-summary.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.back-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-link a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.back-link a:hover {
    text-decoration: underline;
}

.code-input-large {
    font-size: 24px !important;
    letter-spacing: 8px !important;
    text-align: center !important;
    font-weight: bold !important;
    font-family: 'Courier New', monospace !important;
}

.security-info {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
}

.security-info i {
    color: #856404;
    margin-right: 8px;
}

/* Indicador de pasos */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.step {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 14px;
}

.step.active {
    color: #2e7d32;
    font-weight: 600;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #2e7d32;
    color: white;
}

.step-line {
    width: 80px;
    height: 2px;
    background: #e9ecef;
    margin: 0 15px;
}

/* ======================================== RECUPERAR PASSWORD ======================================== */
.container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
    border-top: 5px solid #1b5e20;
}

h2 {
    color: #1b5e20;
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-info {
    background: #d1f1d5ff;
    color: #0c6021ff;
    border: 1px solid #beebbeff;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input[type="email"]:focus {
    outline: none;
    border-color: #2e7d32;
}

button,
.btn {
    width: 100%;
    transition: transform 0.2s;
    text-align: center;
    padding: 12px 20px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;

}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

.enlace-box {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    position: relative;
}

.codigo-box {
    background: #d7ffcdff;
    border: 2px solid #2c801bab;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.codigo {
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 10px;
    color: #333;
    font-family: monospace;
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.copy-btn {
    background: #28a745;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 14px;
    width: auto;
    display: inline-block;
}

.back-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-link a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;

}

.back-link a:hover {
    text-decoration: underline;
}

.instructions {
    background: #e8f4fd;
    border-left: 4px solid #2c801bab;
    ;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.instructions h4 {
    margin-top: 0;
    color: #16600cff;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.phpmailer-status {
    background: #e7f3ff;
    border: 1px solid #b3d7ff;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    font-size: 14px;
}

/* ======================================== CAMBIAR PASSWORD FIRST ======================================== */
.requirement {
    display: flex;
    align-items: center;
    margin: 5px 0;
    font-size: 13px;
    transition: all 0.3s ease;
}

.requirement i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.requirement.valid {
    color: #28a745;
}

.requirement.invalid {
    color: #dc3545;
}

.requirement.pending {
    color: #6c757d;
}

.validation-summary {
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 14px;
}

.validation-summary.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-help {
    margin-top: 5px;
    display: block;
    font-size: 12px;
    min-height: 18px;
}