/**
 * Estilos del sistema de autenticación - COHERENTE con autoCatastro
 * 
 * @package autoCatastro_Client
 * @version 1.0.0
 */

 .ac-auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: white; /* Fondo blanco como el resto del sitio */
}

.ac-auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Sombra más sutil */
    padding: 50px;
    max-width: 480px;
    width: 100%;
    border-top: 4px solid #F36C21; /* Borde naranja de marca */
}

.ac-auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.ac-auth-logo img {
    max-width: 200px;
    height: auto;
}

.ac-auth-title {
    font-family: 'Lato', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1C1C1C;
    text-align: center;
    margin-bottom: 10px;
}

.ac-auth-subtitle {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

/* Pestañas - estilo coherente */
.ac-auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.ac-auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.ac-auth-tab:hover {
    color: #F36C21;
}

.ac-auth-tab.active {
    color: #F36C21;
    border-bottom-color: #F36C21;
}

/* Formularios */
.ac-auth-form {
    display: none;
}

.ac-auth-form.active {
    display: block;
}

.ac-form-group {
    margin-bottom: 20px;
}

.ac-form-group label {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.ac-form-group input[type="text"],
.ac-form-group input[type="email"],
.ac-form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.ac-form-group input:focus {
    outline: none;
    border-color: #F36C21;
    box-shadow: 0 0 0 3px rgba(243, 108, 33, 0.1);
}

.ac-field-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Checkbox RGPD */
.ac-checkbox-group {
    margin: 25px 0;
}

.ac-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.ac-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #F36C21; /* Color naranja en checkbox */
}

.ac-checkbox-label a {
    color: #F36C21;
    text-decoration: none;
}

.ac-checkbox-label a:hover {
    text-decoration: underline;
}

/* Botones - gradiente naranja de marca */
.ac-btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #F36C21 0%, #FDB913 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ac-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 26, 0.4);
}

.ac-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ac-btn-primary .btn-loader {
    display: none;
}

.ac-btn-primary.loading .btn-text {
    display: none;
}

.ac-btn-primary.loading .btn-loader {
    display: inline;
}

/* Enlaces */
.ac-auth-links {
    text-align: center;
    margin-top: 15px;
}

.ac-auth-links a {
    font-size: 14px;
    color: #F36C21;
    text-decoration: none;
}

.ac-auth-links a:hover {
    text-decoration: underline;
}

/* Info adicional */
.ac-auth-info {
    margin-top: 20px;
    padding: 15px;
    background: #fff5e6; /* Fondo naranja muy suave */
    border-left: 4px solid #F36C21;
    border-radius: 4px;
    text-align: left;
}

.ac-auth-info p {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

/* Footer */
.ac-auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.ac-auth-footer a {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.ac-auth-footer a:hover {
    color: #F36C21;
}

/* Mensajes */
#ac-auth-messages {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    border-left: 4px solid;
}

#ac-auth-messages.error {
    background: #ffebee;
    color: #c62828;
    border-left-color: #ef5350;
}

#ac-auth-messages.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left-color: #66bb6a;
}

/* Responsive */
@media (max-width: 600px) {
    .ac-auth-container {
        padding: 40px 20px;
    }
    
    .ac-auth-card {
        padding: 30px 20px;
    }
    
    .ac-auth-title {
        font-size: 24px;
    }
    
    .ac-auth-logo img {
        max-width: 160px;
    }
}

/* ==========================================================================
   MOSTRAR / OCULTAR CONTRASEÑA (icono ojo)
   ========================================================================== */

.ac-password-wrapper {
    position: relative;
}

.ac-password-wrapper input[type="password"],
.ac-password-wrapper input[type="text"] {
    padding-right: 45px; /* espacio para el icono */
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    font-size: 18px;
    user-select: none;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #F36C21; /* naranja corporativo */
}

.toggle-password.visible {
    color: #F36C21;
}


.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    font-size: 18px;
    user-select: none;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #F36C21; /* Naranja corporativo */
}

.toggle-password.visible {
    color: #F36C21;
}
