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

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;   /* antes: hidden → en celulares chicos no se podía bajar */
    overflow-y: auto;
}

/* Fondo con imagen de Monte Caseros */
.bg-image {
    position: fixed;
    inset: 0;
    /* Antes: foto enlazada de republicadecorrientes.com (enlace externo que puede romperse
       y no es tuya). Para usar una foto propia: subila como img/fondo.webp y descomentá:
       background-image: url('img/fondo.webp'); */
    background-color: #2b6a9a;
    background-image:
        radial-gradient(ellipse at 20% 15%, rgba(255,255,255,0.35) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 80%, rgba(72,187,120,0.35) 0%, transparent 50%),
        linear-gradient(160deg, #7cc3e8 0%, #3d8cc4 45%, #1f5f8f 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.92) blur(3px);
    z-index: 0;
}

/* Overlay muy suave para dar profundidad */
.bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(100, 160, 200, 0.15) 0%,
        rgba(80, 140, 180, 0.10) 60%,
        rgba(60, 100, 140, 0.20) 100%
    );
    z-index: 1;
}

/* Contenedor principal */
.page-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header con logo */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 20px 10px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo SVG simulado con CSS */
.logo-icon {
    width: 64px;
    height: 64px;
    position: relative;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.logo-termas {
    font-size: 42px;
    font-weight: 900;
    color: white;
    text-shadow:
        2px 2px 0 rgba(0,0,0,0.3),
        0 0 20px rgba(0,100,200,0.4);
    font-style: italic;
    letter-spacing: -1px;
    /* Simular el estilo cursivo del logo */
    font-family: 'Georgia', serif;
}

.logo-mc {
    font-size: 15px;
    font-weight: 900;
    color: white;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin-top: -4px;
    align-self: center;
}

/* Main content */
.main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 20px;
}

/* Card del login */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 32px 40px 36px;
    width: 100%;
    max-width: 550px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15);
    animation: fadeUpCard 0.4s ease 0.08s both;
}

@keyframes fadeUpCard {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

/* Mensajes de error/éxito */
.alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 13.5px;
    font-weight: 500;
}

.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

/* Grupos de campos */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 7px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #888;
    font-size: 16px;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 14.5px;
    color: #333;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: 'Roboto', sans-serif;
}

.form-input::placeholder {
    color: #aaa;
}

.form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Botón mostrar contraseña */
.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 17px;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #555;
}

/* Botones de acción */
.btn-row {
    display: flex;
    gap: 14px;
    margin-top: 26px;
}

.btn {
    flex: 1;
    padding: 12px 10px;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.18s ease;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.2px;
}

.btn-login {
    background: #2563eb;
    color: white;
}

.btn-login:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

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

.btn-close {
    background: #dc2626;
    color: white;
}

.btn-close:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

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

/* Footer con franja de colores y botón ayuda */
.footer {
    position: relative;
    z-index: 2;
}

/* Franja multicolor */
.color-strip {
    height: 12px;
    background: linear-gradient(
        to right,
        #e53e3e 0%,
        #e53e3e 20%,
        #ed8936 20%,
        #ed8936 38%,
        #ecc94b 38%,
        #ecc94b 54%,
        #48bb78 54%,
        #48bb78 70%,
        #4299e1 70%,
        #4299e1 85%,
        #9f7aea 85%,
        #9f7aea 100%
    );
}

/* Área del footer con botón ayuda */
.footer-bar {
    background: rgba(30, 80, 140, 0.75);
    backdrop-filter: blur(6px);
    padding: 14px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-ayuda {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: white;
    padding: 9px 28px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.btn-ayuda:hover {
    background: rgba(255,255,255,0.28);
    border-color: white;
}



/* SVG Icons inline */
svg.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
}

/* Logo SVG */
.logo-svg {
    width: 70px;
    height: 70px;
}
/* Campo trampa anti-spam: invisible para personas, visible para bots */
.hp-campo {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px; overflow: hidden;
}

/* Enlaces legales del pie */
.footer-legal { gap: 22px; flex-wrap: wrap; }
.footer-legal a {
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    opacity: .9;
}
.footer-legal a:hover { text-decoration: underline; opacity: 1; }

/* Logo adaptable: nunca más ancho que la pantalla */
.logo-login { height: 115px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 480px) {
    .logo-login { height: auto; }
}
