/* Reset y configuración general */

/* ==========================
            ROOT
========================== */
:root {
    /* Un rosa fuerte profesional */
    --primary-color: #ff9cce;
    /* Azul oscuro para contraste */
    --secondary-color: #083d77; 
    /*Blanco Central*/
    --accent-color: #f8f9fa; 
    /*Color de texto grisáceo*/
    --text-color: #333;
    /*Color neutro de fondo*/
    --back-color: #efeaf5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==========================
            BODY
========================== */

/*ES*/
body {
    background: linear-gradient(135deg, #f5ea59, #f189bd);
    min-height: 100vh;
        justify-content: center;
    align-items: center;
    width: 100%;
}

/* ==========================
   FORMULARIO LOGIN
========================== */

/*FORMATO CONTENEDOR*/
.container {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
}

/*FORMATO LOGO SESIÓN*/
.logo-session {
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb; /* azul */
  border-radius: 50%;
}

/* ENCABEZADO */
.header {
    text-align: center;
    margin-bottom: 30px;
}

/* ÍCONO SVG */
.logo-session svg {
  width: 38px;
  height: 38px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

/* TARJETA DE LOGIN */
.login-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 40px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.logo-session {
    background: linear-gradient(135deg, #083d77 0%, #2575fc 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.logo i {
    font-size: 36px;
    color: white;
}

.header h1 {
    color: #083d77;
    font-size: 28px;
    margin-bottom: 8px;
}

.subtitle {
    color: #666666;
    font-size: 14px;
}

/* FORMULARIO */
.login-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-group label i {
    color: #ff9cce;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid;
    border-radius: 12px;
    border-color: #083d77;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.form-group input:focus {
    border-color: #ff9cce;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.toggle-password:hover {
    color: #083d77;
}

/* Checkbox Recordarme */
.remember {
    display: flex;
    align-items: center;
    gap: 10px;
}

.remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff9cce;
}

.remember label {
    margin-bottom: 0;
    cursor: pointer;
}

/* Botón de envío */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: #083d77;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    background: #ff9cce;
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ENLACES */
.links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.links a {
    color: #083d77;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.links a:hover {
    color: #2575fc;
    text-decoration: underline;
}

/* MENSAJES DE ERROR Y ÉXITO */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s;
}

.error-message.general {
    text-align: center;
    padding: 15px;
    background-color: #fee;
    border-radius: 10px;
    margin-top: 20px;
}

.success-message {
    color: #27ae60;
    font-size: 14px;
    text-align: center;
    padding: 15px;
    background-color: #efffee;
    border-radius: 10px;
    margin-top: 20px;
    display: none;
    animation: fadeIn 0.3s;
}

.success-message.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* USUARIOS DE PRUEBA */
.test-users {
    background-color: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid #e6e9ff;
}

.test-users h3 {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.test-users h3 i {
    color: #083d77;
}

.users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user {
    background-color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    border-left: 4px solid #083d77;
}

.user strong {
    color: #083d77;
}

/* ESTADO/STATUS */
.status {
    display: flex;
    justify-content: space-between;
    background-color: #f8f9ff;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.status-item i {
    color: #083d77;
}

/* TIEMPO */

.time {
    align-items: center;
    text-align: center;
    font-size: 14px;
    color: #fff;
    margin-top: 10px;
    font-family: 'Courier New', Courier, monospace;
}

/* Página de inicio (inicio.html) */
.welcome-container {
    background-color: white;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.welcome-container h1 {
    color: #083d77;
    margin-bottom: 20px;
}

.user-info {
    background-color: #f8f9ff;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: left;
}

.logout-btn {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.logout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 65, 108, 0.2);
}

/* RESPONSIVO */
@media (max-width: 600px) {
    .login-card {
        padding: 30px 25px;
    }
    
    .links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .status {
        flex-direction: column;
        gap: 15px;
    }
    
    .header h1 {
        font-size: 24px;
    }
}