/* Login CIACON Style */
.cia-login-wrapper {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 20px;
}

.cia-login-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.cia-login-logo {
    margin-bottom: 20px;
}

.cia-login-logo img {
    max-width: 200px;
    height: auto;
}

.cia-login-logo-text {
    margin-bottom: 20px;
}

.cia-logo-graphic {
    width: 80px;
    height: 40px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #171758 0%, #2a3a7a 100%);
    border-radius: 8px 8px 0 0;
    position: relative;
}

.cia-logo-graphic::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: linear-gradient(135deg, #171758 0%, #2a3a7a 100%);
    border-radius: 0 0 8px 8px;
}

.cia-login-logo-text h1 {
    font-size: 36px;
    font-weight: 700;
    color: #171758;
    margin: 15px 0 10px;
    letter-spacing: 2px;
}

.cia-login-subtitle {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
    font-weight: 400;
}

.cia-login-subtitle-small {
    font-size: 11px;
    color: #999;
    margin: 5px 0 30px;
}

.cia-login-step {
    margin-top: 30px;
}

.cia-login-step h3 {
    color: #171758;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.cia-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.cia-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.cia-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cia-form-group input:focus {
    outline: none;
    border-color: #171758;
    box-shadow: 0 0 0 3px rgba(23, 23, 88, 0.1);
}

.cia-btn-login {
    width: 100%;
    padding: 14px;
    background: #171758;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.cia-btn-login:hover {
    background: #2a3a7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 23, 88, 0.3);
}

.cia-btn-login:active {
    transform: translateY(0);
}

.cia-btn-login:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.cia-btn-secondary {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #171758;
    border: 2px solid #171758;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.cia-btn-secondary:hover {
    background: #171758;
    color: #ffffff;
}

.cia-error-message {
    margin-top: 15px;
    padding: 12px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 6px;
    font-size: 14px;
    text-align: left;
    display: none;
}

.cia-success-message {
    margin-top: 15px;
    padding: 12px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 6px;
    font-size: 14px;
    text-align: left;
    display: block;
}

.cia-otp-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-align: center; /* Centrar el texto */
}

.cia-otp-info strong {
    display: block; /* Hacer que el nombre de la sede esté en una línea separada */
    margin-top: 5px;
    font-size: 15px;
    color: #171758;
}

.cia-otp-resend {
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

.cia-otp-resend a {
    color: #171758;
    text-decoration: none;
    font-weight: 500;
}

.cia-otp-resend a:hover {
    text-decoration: underline;
}

/* OTP Input Style - Campo único con formato */
.cia-otp-single-field {
    width: 100%;
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 12px;
    padding: 25px 30px !important;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Poppins', monospace;
    color: #171758;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
    line-height: 1.5;
    min-height: 80px;
    height: auto;
}

.cia-otp-single-field:focus {
    outline: none;
    border-color: #171758;
    box-shadow: 0 0 0 4px rgba(23, 23, 88, 0.15);
}

/* Placeholder removido - no se muestra texto de sugerencia */

/* Responsive para OTP */
@media (max-width: 480px) {
    .cia-otp-single-field {
        font-size: 24px;
        letter-spacing: 8px;
        padding: 40px 25px !important; /* Más espacio vertical en móvil también */
        min-height: 90px !important; /* Altura mínima en móvil */
        line-height: 1.8 !important;
    }
    
    /* Placeholder removido - no se muestra texto de sugerencia */
}

.cia-loading {
    text-align: center;
    padding: 30px;
}

.cia-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #171758;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Selección de Sedes */
#cia_sedes_list {
    margin: 20px 0;
}

.cia-sede-option {
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.cia-sede-option:hover {
    border-color: #171758;
    background: #f9fafb;
    transform: translateX(5px);
}

.cia-sede-option strong {
    color: #171758;
    font-size: 15px;
}

.cia-badge-primary {
    display: inline-block;
    background: #171758;
    color: #ffffff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 500;
}

/* Modal Olvidaste Contraseña */
.cia-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.cia-modal-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    overflow: hidden;
}

.cia-modal-header {
    background: #171758;
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cia-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

.cia-modal-close {
    display: none;
}

.cia-modal-body {
    padding: 30px;
}

.cia-modal-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

.cia-forgot-password {
    margin-top: 15px;
    text-align: center;
}

.cia-forgot-password a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.cia-forgot-password a:hover {
    color: #171758;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .cia-login-card {
        padding: 30px 20px;
    }
    
    .cia-login-logo-text h1 {
        font-size: 28px;
    }
    
    .cia-modal-box {
        width: 95%;
        margin: 20px;
    }
}
