/**
 * 🎨 TirePress - Hoja de Estilos de Autenticación (login.html)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #0f1115;
    --bg-card: #181c24;
    --accent: #39ff14; /* Verde neón ultra-deportivo */
    --accent-glow: rgba(57, 255, 20, 0.4);
    --text-main: #f8f9fa;
    --text-muted: #8d99ae;
    --border-color: #2b303c;
    --error: #ef233c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

/* Contenedor Principal con Glassmorphism sutil */
.auth-container {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(57, 255, 20, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Cabecera / Marca */
.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f242e, #0f1115);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    margin-bottom: 15px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    background: linear-gradient(to right, var(--text-main), #a8dadc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Formularios y grupos de entrada */
.auth-form {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.auth-form.active {
    display: block;
    opacity: 1;
}

.input-group {
    margin-bottom: 22px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    background-color: #0f1115;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.15);
    background-color: #12151b;
}

/* Checkbox Personalizado */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-container:hover .checkmark {
    border-color: var(--accent);
}

.checkbox-container input:checked + .checkmark {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.checkbox-container input:checked + .checkmark::after {
    content: "✓";
    color: #000;
    font-weight: 800;
    font-size: 13px;
}

/* Mensajes de error */
.error-message {
    background-color: rgba(239, 35, 60, 0.1);
    border: 1px solid var(--error);
    color: #ff6b6b;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
}

/* Botones de Acción */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), #2ee610);
    color: #000;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(57, 255, 20, 0.2);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(57, 255, 20, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Switch de formulario */
.form-switch {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.form-switch a:hover {
    text-decoration: underline;
    color: #2ee610;
}
