﻿/* login.css */
:root {
    --brand: #45A041;
    --brand-dark: #3b8b38;
    --text-on-brand: #ffffff;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f1f3f5;
}


/* TRAMA DE FRANJAS */
.hero-trama {
    position: relative;
    width: 100%;
    height: 30px;
    overflow: hidden;
}

.hero-trama-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}


/* ===== Card centrado (vertical y horizontal) ===== */
:root {
    --brand: #45A041;
    --brand-dark: #2f6d2d;
    --ink: #2b2b2b;
    --muted: #6b7280;
    --bg: #f1f3f5; /* fondo gris claro */
    --card: #ffffff;
    --border: #e5e7eb;
    --radius: 14px;
    --shadow: 0 12px 28px rgba(0,0,0,.08);
}

.auth-wrapper {
    min-height: 100vh; /* ocupa todo el alto de la ventana */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px; /* respiración en móviles */
    background: var(--bg);
}

.auth-card {
    width: min(720px, 92vw); /* como en la imagen: card ancho medio */
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 48px;
}

.auth-head {
    display: inline-block;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 25px;
    margin-top: 10px;
    text-align: center;
}

.auth-icon {
    width: 65px;
    height: 65px;
}

.auth-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.35;
    font-weight: 700;
    color: #45A041;
}

.auth-subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 550;
    color: #45A041;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
    text-align: left;
}

.auth-input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #cfd4da;
    border-radius: 8px;
    background: #fff;
    color: #111;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .auth-input:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(69,160,65,.16);
    }

/* Botón verde principal */
.btn-primary {
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform .06s ease, background .15s ease;
    display: block;
    margin: 0 auto;
}

    .btn-primary:hover {
        background: var(--brand-dark);
    }

    .btn-primary:active {
        transform: translateY(1px);
        background: var(--brand-dark);
    }

/* Responsivo */
@media (max-width: 640px) {
    .auth-card {
        padding: 28px 20px;
    }

    .auth-title {
        font-size: 16px;
    }

    .auth-icon {
        width: 40px;
        height: 40px;
    }
}

:root {
    --govbar-h: 56px; /* misma altura que .govbar__inner */
    --trama-h: 90px; /* misma altura que .hero-trama */
}

/* Usa la altura del viewport menos header+trama */
.auth-wrapper {
    min-height: calc(100svh - var(--govbar-h) - var(--trama-h));
}

/* (opcional) si esta página NO muestra header+trama, fuerza 100svh */
.page-sin-header .auth-wrapper {
    min-height: 100svh;
}

/* Evitar scroll horizontal por si algún SVG o sombra se desborda */
html, body {
    overflow-x: hidden;
}

/* Buena práctica: box-sizing consistente */
*, *::before, *::after {
    box-sizing: border-box;
}

.footer {
    background: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
}

    .footer small {
        font-weight: 400;
    }