:root {

    /* Inspirado en el tema de Kinomail */

    --bg-void: #070b14;
    --bg-panel: #111827;
    --bg-overlay: #1e2d40;

    --border-light: rgba(99,130,168,0.22);

    --text-primary: #e8edf5;
    --text-secondary: #8ba1bb;
    --text-muted: #4a637d;

    --accent-cyan: #22d3ee;
    --accent-cyan-dim: #0e8fa3;

    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-lg: 0 12px 40px rgba(0,0,0,.7);

    --ease-out: cubic-bezier(0.16,1,0.3,1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.bg-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.05);

    filter:
        brightness(.90)
        saturate(.90)
        contrast(1.00);
}

/* Capa principal */
.overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(7,11,20,.20) 0%,
            rgba(12,17,32,.15) 45%,
            rgba(7,11,20,.35) 100%
        );
}

/* Tinte Kinomail */
.overlay::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at top center,
            rgba(34,211,238,.08),
            transparent 50%
        );
}

/* Viñeta suave */
.overlay::after {
    content: "";

    position: absolute;
    inset: 0;

    box-shadow:
        inset 0 0 100px rgba(0,0,0,.20);
}

.content {
    position: relative;
    z-index: 10;

    width: min(90%, 700px);

    text-align: center;

    animation: fadeIn .9s var(--ease-out);
}

.brand {
    font-family: var(--font-display);

    font-size: 1rem;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;

    color: var(--text-secondary);

    margin-bottom: 1.5rem;
}

.brand span {
    color: var(--accent-cyan);
}

h1 {
    font-family: var(--font-display);

    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;

    margin-bottom: 1.25rem;

    text-wrap: balance;
}

.tagline {
    color: var(--text-secondary);

    font-size: 1.1rem;

    max-width: 540px;

    margin: 0 auto 2.5rem auto;
}

.login-btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 220px;

    padding: 1rem 1.5rem;

    text-decoration: none;

    color: var(--text-primary);

    background: rgba(17,24,39,.72);

    border: 1px solid var(--border-light);

    border-radius: var(--radius-md);

    backdrop-filter: blur(12px);

    transition:
        transform .2s var(--ease-out),
        border-color .2s var(--ease-out),
        background .2s var(--ease-out),
        box-shadow .2s var(--ease-out);
}

.login-btn:hover {

    transform: translateY(-2px);

    border-color: rgba(34,211,238,.4);

    background: rgba(17,24,39,.85);

    box-shadow:
        0 0 0 1px rgba(34,211,238,.15),
        0 10px 30px rgba(0,0,0,.35);
}

.mantra {

    margin-top: 2rem;

    font-size: .95rem;

    color: var(--text-muted);

    letter-spacing: .02em;
}

.footer {

    position: fixed;

    bottom: 1.5rem;
    left: 50%;

    transform: translateX(-50%);

    z-index: 10;
}

.footer a {

    color: var(--text-secondary);

    text-decoration: none;

    font-size: .9rem;

    transition: color .2s ease;
}

.footer a:hover {
    color: var(--text-primary);
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    .tagline {
        font-size: 1rem;
    }

    .footer {
        bottom: 1rem;
    }

    .login-btn {
        width: 100%;
        max-width: 320px;
    }
}

.lang-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
}

.lang-selector select {
    background: rgba(17, 24, 39, 0.65);
    color: var(--text-primary);

    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);

    padding: 0.5rem 0.75rem;

    font-family: var(--font-body);
    font-size: 0.9rem;

    backdrop-filter: blur(12px);

    outline: none;

    cursor: pointer;

    transition: border-color 0.2s ease;
}

.lang-selector select:hover {
    border-color: rgba(34, 211, 238, 0.4);
}

.lang-selector select:focus {
    border-color: var(--accent-cyan);
}