﻿:root {
    --bg1: #0b2f86;
    --bg2: #1f57d6;
    --card: #ffffff;
    --text: #0b1220;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 20px 60px rgba(0,0,0,.18);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
}

/* Fondo */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%);
}

/* Header / branding centrado arriba */
.login-hero {
    padding: 54px 16px 18px;
    display: flex;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.login-brand {
    max-width: 720px;
}

.brand-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 16px;
    color: #fff;
    backdrop-filter: blur(8px);
}

.login-brand h1 {
    margin: 0;
    font-size: 44px;
    letter-spacing: .2px;
    font-weight: 800;
}

.login-brand p {
    margin: 8px 0 0;
    font-size: 18px;
    opacity: .92;
}

/* Card */
.login-card-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 22px 16px 60px;
}

.login-card {
    width: min(520px, 100%);
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 28px 20px;
}

.card-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    display: none; /* si no lo quieres, queda oculto */
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: #111827;
}

.form-control {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    outline: none;
    transition: .15s ease;
}

    .form-control:focus {
        border-color: rgba(59,130,246,.7);
        box-shadow: 0 0 0 4px rgba(59,130,246,.18);
    }

.field-error {
    display: block;
    margin-top: 8px;
    color: #dc2626;
    font-size: 13px;
    min-height: 16px;
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    color: #374151;
    font-size: 14px;
}

    .check input {
        width: 16px;
        height: 16px;
    }

.link-muted {
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
}

    .link-muted:hover {
        text-decoration: underline;
    }

/* Botón */
.btn-primary {
    margin-top: 8px;
    height: 54px;
    border: 0;
    border-radius: 14px;
    background: rgba(59,130,246,.45);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    transition: .15s ease;
}

    .btn-primary:hover {
        background: rgba(59,130,246,.55);
        transform: translateY(-1px);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 10px 0 16px;
}

    .alert-error ul {
        margin: 0;
        padding-left: 18px;
    }

/* Footer */
.card-footer {
    margin-top: 14px;
    text-align: center;
}

.muted {
    color: #9ca3af;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 520px) {
    .login-brand h1 {
        font-size: 34px;
    }

    .login-card {
        padding: 22px 18px 18px;
    }
}
