:root {
    /* Paleta Mendieta */
    --m-primary: #053d38;
    --m-primary-2: #34675c;
    --m-accent: #a3ccaa;
    --m-surface: #b2c8c1;
    --m-ink: #13140e;

    /* UI */
    --text: #0f172a;
    --muted: #64748b;
    --border: rgba(5, 61, 56, 0.16);
    --bg: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        "Poppins",
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif;
    background: #fff;
    color: var(--text);
}

.container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* LEFT */
.left {
    padding: 64px 72px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-inner {
    width: 100%;
    max-width: 520px;
}

h1 {
    margin: 0 0 10px 0;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--m-ink);
}

.subtitle {
    margin: 0 0 34px 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

/* FORM */
.form {
    display: grid;
    gap: 18px;
}

.field label {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: rgba(19, 20, 14, 0.88);
}

.input {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 0 14px;
    background: #fff;
    font-size: 15px;
}

.input::placeholder {
    color: rgba(100, 116, 139, 0.9);
}

.input:focus {
    outline: none;
    border-color: rgba(5, 61, 56, 0.45);
    box-shadow: 0 0 0 4px rgba(163, 204, 170, 0.28);
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.row a {
    color: var(--m-primary-2);
    text-decoration: none;
    font-weight: 600;
}
.row a:hover {
    text-decoration: underline;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(19, 20, 14, 0.72);
    user-select: none;
}

.check input {
    accent-color: var(--m-primary);
    width: 16px;
    height: 16px;
}

.btn {
    height: 54px;
    width: 100%;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--m-primary), var(--m-primary-2));
    color: #fff;
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(5, 61, 56, 0.22);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease;
}
.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 22px 48px rgba(5, 61, 56, 0.26);
}
.btn:active {
    transform: translateY(0);
}

.footer {
    margin-top: 14px;
    font-size: 14px;
    color: var(--muted);
}
.footer a {
    color: var(--m-primary-2);
    text-decoration: none;
    font-weight: 600;
}
.footer a:hover {
    text-decoration: underline;
}

/* RIGHT - MEJORADO 🎨 */
.right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;

    /* Gradiente más vibrante y diagonal */
    background:
        radial-gradient(
            1000px 600px at 35% 25%,
            rgba(163, 204, 170, 0.24),
            transparent 60%
        ),
        radial-gradient(
            800px 500px at 75% 70%,
            rgba(52, 103, 92, 0.28),
            transparent 65%
        ),
        linear-gradient(145deg, #064a43 0%, #042f2b 50%, #021916 100%);
}

/* Cuadrícula más sutil y refinada */
.right::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
}

/* Formas geométricas decorativas */
.right::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 20% 80%,
            rgba(163, 204, 170, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 15%,
            rgba(52, 103, 92, 0.15),
            transparent 40%
        );
    pointer-events: none;
}

/* Elementos decorativos adicionales */
.deco-shape-1,
.deco-shape-2,
.deco-shape-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    pointer-events: none;
}

.deco-shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #a3ccaa, transparent);
    top: -10%;
    right: -5%;
}

.deco-shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #34675c, transparent);
    bottom: -5%;
    left: -8%;
}

.deco-shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(163, 204, 170, 0.6), transparent);
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
}

/* Líneas decorativas estilo contabilidad */
.lines {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    pointer-events: none;
}

.lines svg {
    width: 100%;
    height: 100%;
}

.brand {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 440px;
    padding: 0 20px;
}

.logo {
    width: 200px;
    height: auto;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Glow sutil alrededor del logo */
.logo::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: radial-gradient(
        circle,
        rgba(163, 204, 170, 0.18),
        transparent 60%
    );
    border-radius: 50%;
    filter: blur(30px);
    z-index: -1;
}

.logo img {
    width: 100%;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.3));
}

.brand h2 {
    margin: 0 0 12px 0;
    font-size: 32px;
    letter-spacing: 0.3px;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.75;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }
    .right {
        display: none;
    }
    .left {
        padding: 44px 24px;
    }
    .left-inner {
        max-width: 560px;
    }
}
