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

/* ======== VARIABLES Y CONFIGURACIÓN GLOBAL (ESTILO AGXEED) ======== */
:root {
    --bg-light: #F7F8FA;
    --bg-card: #ffffff;
    --accent-green: #3BAE43;       /* Verde Institucional */
    --accent-green-hover: #216E39; /* Verde Oscuro */
    --accent-blue: #005A9C;        /* Azul Tecnológico */
    --text-dark: #222222;          /* Negro / Texto Oscuro */
    --text-secondary: #57606f;     /* Gris secundario */
    --border-color: #e0e0e0;
    --border-focus: #3BAE43;
    --error: #e74c3c;
    --success: #2ecc71;
    --warning: #f39c12;
    --transition-fast: 0.2s ease-in-out;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: url("../images/vehicle2.jpg") no-repeat center center fixed;
    background-size: cover;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space content and footer naturally */
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Capa de overlay blanca semi-transparente para que la imagen de fondo no opaque los controles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(3px); /* Soft blur para disminuir contraste de la imagen */
    z-index: -1;
}

/* ======== CONTENEDORES Y TARJETAS ======== */
.contenedor {
    width: 95%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-fast);
    position: relative;
}

/* Línea verde superior decorativa estilo AgXeed */
.contenedor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-green);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* ======== TIPOGRAFÍA Y ENCABEZADOS ======== */
h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin-bottom: 5px;
    text-align: center;
}

h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-green);
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ======== FORMULARIOS E INPUTS ======== */
.formulario {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.campo {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 20px;
}

label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

input {
    width: 100%;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(92, 184, 52, 0.2);
}

input::placeholder {
    color: #a0a0a0;
}

/* ======== ENLACES ======== */
.ayuda-enlace {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    align-self: flex-end;
    margin-top: -10px;
    margin-bottom: 20px;
    transition: color var(--transition-fast);
    font-weight: 500;
}

.ayuda-enlace:hover {
    color: var(--accent-green);
}

.link-retorno {
    text-align: center;
    margin-top: 20px;
}

.link-retorno a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.link-retorno a:hover {
    color: var(--accent-green);
}

/* ======== BOTONES ======== */
button {
    font-family: 'Outfit', sans-serif;
    width: 100%;
    padding: 12px;
    background: var(--accent-green);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background var(--transition-fast), transform 0.1s ease;
    text-align: center;
}

button:hover {
    background: var(--accent-green-hover);
}

button:active {
    transform: scale(0.98);
}

/* ======== ALERTAS ======== */
.alerta {
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 4px solid transparent;
}

.alerta-error {
    background: #fdf2f2;
    border-color: var(--error);
    color: #b91c1c;
}

.alerta-success {
    background: #f0fdf4;
    border-color: var(--success);
    color: #166534;
}

.alerta-warning {
    background: #fffbeb;
    border-color: var(--warning);
    color: #92400e;
}

/* ======== REQUISITOS DE PASSWORD ======== */
.password-requisitos {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.requisito-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.requisito-item.cumplido {
    color: #166534;
}

.requisito-item.incumplido {
    color: #b91c1c;
}

/* ======== RESPONSIVIDAD ======== */
@media (max-width: 480px) {
    .contenedor {
        padding: 30px 20px;
    }
}

/* ======== WRAPPER PARA CENTRADO VERTICAL DE TARJETAS EN LOGIN/RECUPERAR ======== */
.seccion-principal {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 50px 0;
}

/* ======== PIE DE PÁGINA (ESTILO AGXEED) ======== */
.footer {
    width: 100%;
    background: #1c1c1c; /* Charcoal oscuro AgXeed */
    color: #ffffff;
    padding: 50px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    margin-top: auto; /* Empuja el footer al final */
}

.footer-contenedor {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-columna {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-columna h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.footer-columna p,
.footer-columna a {
    font-size: 0.85rem;
    color: #a4b0be;
    text-decoration: none;
    line-height: 1.6;
    transition: color var(--transition-fast);
}

.footer-columna a:hover {
    color: var(--accent-green);
}

.footer-social-iconos {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.footer-social-iconos svg {
    width: 20px;
    height: 20px;
    fill: #a4b0be;
    transition: fill var(--transition-fast);
}

.footer-social-iconos a:hover svg {
    fill: var(--accent-green);
}

@media (max-width: 768px) {
    .footer {
        padding: 35px 20px;
    }
    .footer-contenedor {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
