@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Fraunces:wght@500;700&display=swap');

:root {
    --ink: #0f253a;
    --ink-soft: #274860;
    --card: rgba(255, 255, 255, 0.84);
    --edge: rgba(95, 136, 168, 0.55);
    --accent: #0b7a7a;
    --accent-strong: #0a6161;
    --danger: #c4302b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Space Grotesk', sans-serif;
    background-image: url('/static/imagenes/FONDO_HTML_BIENVENIDO.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

.locale-switcher,
.login-locale-switcher,
.locale-btn,
.flag-icon {
    display: none !important;
}

.login-shell {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 22px;
    margin: auto;
}

.brand-panel,
.form-panel {
    background: var(--card);
    border: 1px solid var(--edge);
    border-radius: 18px;
    padding: 26px 24px;
    backdrop-filter: blur(7px);
    box-shadow: 0 14px 32px rgba(12, 31, 49, 0.2);
}

.brand-top {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(127, 163, 188, 0.55);
    padding: 8px;
}

.brand-copy h1 {
    margin: 0;
    font-family: 'Fraunces', serif;
    letter-spacing: 0.2px;
    font-size: 38px;
}

.brand-tagline {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 8px 0 0;
    padding: 6px 11px;
    border: 1px solid rgba(11, 122, 122, 0.28);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(11, 122, 122, 0.14), rgba(255, 255, 255, 0.74));
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.2px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 6px 14px rgba(12, 31, 49, 0.08);
}

.brand-body h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.brand-body p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
}

.brand-bullets {
    margin: 14px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    color: #12324a;
    font-size: 16px;
}

.brand-footer {
    margin: 22px 0 0;
    color: #35607e;
    font-size: 13px;
    font-weight: 600;
}

.form-panel h2 {
    margin: 0;
    font-size: 34px;
    font-family: 'Fraunces', serif;
}

.hint {
    margin: 6px 0 16px;
    opacity: 1;
    color: var(--ink-soft);
    font-size: 15px;
}

label {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--ink);
    font-weight: 600;
}

input,
button {
    font-family: inherit;
    font-size: 16px;
}

input {
    border: 1px solid var(--edge);
    border-radius: 10px;
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
}

button {
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.18s ease;
}

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

.error {
    color: var(--danger);
    min-height: 22px;
    margin: 10px 0 4px;
    font-size: 14px;
}

.support-note {
    margin: 0;
    color: #335b78;
    font-size: 13px;
}

.login-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(95, 136, 168, 0.28);
    font-size: 12px;
}

.login-legal-links a {
    color: var(--accent-strong);
    font-weight: 700;
    text-decoration: none;
}

.login-legal-links a:hover {
    text-decoration: underline;
}

@media (max-width: 860px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .brand-copy h1 {
        font-size: 32px;
    }

    .form-panel h2 {
        font-size: 30px;
    }
}
