/* Estilos generales */

/* CAPTCHA */
.captcha-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.captcha-text {
    font-size: 32px;
    font-weight: bold;
    color: #495057;
    user-select: none;
    min-width: 120px;
}

.captcha-input {
    max-width: 80px;
    font-size: 20px;
    text-align: center;
    font-weight: bold;
}

/* Credencial - Estilo con imagen de fondo */
.credencial-card {
    background: #ffffff;
    background-image: url('../../uploads/autorities/credencial-template.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    color: #333;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.586;
    min-height: 260px;
    max-height: 340px;
    border: 1px solid #e0e0e0;
}

/* Eliminamos las decoraciones CSS ya que usaremos la imagen */
.credencial-card::before,
.credencial-card::after {
    display: none;
}

.credencial-header {
    display: flex;
    align-items: flex-start;
    padding: 30px 0px 0px 0px;
    position: relative;
    z-index: 2;
}

.credencial-logo {
    background: transparent;
    /* width: 50px;
    height: 50px; */
    width: 0px;
    height: 0px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    /* Ocultar el logo predeterminado si la imagen ya tiene uno */
    opacity: 0;
}

.credencial-logo i {
    font-size: 28px;
    color: #0066A1;
}

.credencial-title {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Ocultar el título si la imagen ya lo tiene */
    opacity: 0;
}

.organization-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #333;
    text-transform: uppercase;
}

.organization-subtitle {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
    color: #666;
}

.btn-close-credencial {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #0066A1;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 3;
    border-radius: 50%;
}

.btn-close-credencial:hover {
    transform: scale(1.2);
    color: #FF6B35;
    background: rgba(255, 255, 255, 1);
}

.credencial-body {
    padding: 0 35px 25px 35px;
    position: relative;
    z-index: 2;
}

.credencial-nombres, .credencial-apellidos {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
    text-transform: uppercase;
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

.credencial-titulo {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 13px;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
    color: #888;
    font-weight: 400;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 3px solid #FF6B35;
    max-width: 180px;
}

.credencial-numero {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    margin-top: 0;
    font-weight: 500;
    color: #333;
    line-height: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.credencial-numero i {
    color: #666;
    font-size: 13px;
    margin-right: 8px;
}

.credencial-footer {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    padding-top: 0;
    border-top: none;
}

.credencial-info {
    display: flex;
    flex-direction: column;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

.info-label {
    font-size: 9px;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 3px;
    font-weight: 500;
}

.info-value {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #333;
    line-height: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.info-value i {
    color: #666;
    font-size: 13px;
    margin-right: 8px;
}

.credencial-hora {
    position: absolute;
    bottom: 20px;
    right: 25px;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #999;
    z-index: 2;
}

/* Logo decorativo en el lado derecho - removido ya que la imagen lo tiene */
.credencial-card .credencial-body::before {
    display: none;
}

.credencial-card {
    animation: slideInUp 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 20px;
    }
    
    .credencial-numero {
        font-size: 16px;
    }
    
    .credencial-socio {
        font-size: 11px;
    }
    
    .credencial-nombres {
        font-size: 14px;
    }
    
    .captcha-text {
        font-size: 24px;
    }
}

/* Utilidades */
.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.btn-success {
    background-color: #10b981;
    border-color: #10b981;
}

.btn-success:hover {
    background-color: #059669;
    border-color: #059669;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}
