/* =====================================================
   home.css — Login Permisos Vehiculares Oaxaca
   Paleta oficial: verde #285C4D, vino #9D2449
===================================================== */

:root {
    --verde:        #285C4D;
    --verde2:       #1e4639;
    --vino:         #9D2449;
    --teal:         #00B0A6;
    --azul:         #0098D4;
    --morado:       #8E418D;
    --naranja:      #F98927;
    --verde-claro:  #59B038;
    --rosa:         #F44C63;
    --dorado:       #B38E5D;
    --amarillo:     #F6C547;

    --blanco:       #ffffff;
    --gris-bg:      #f4f6f8;
    --gris-line:    #e2e6ea;
    --texto:        #1a1f2e;
    --muted:        #6b7685;
    --danger:       #cc2828;
    --warning-c:    #8a4800;

    --shadow-card: 0 2px 8px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.12), 0 32px 80px rgba(0,0,0,.1);
}

/* ── Reset mínimo ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    color: var(--texto);
    background: var(--gris-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z' fill='%23285C4D'/%3E%3C/svg%3E");
    background-size: 40px 40px;
    opacity: .06;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 600px at 0% 0%, rgba(40,92,77,.09), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 100%, rgba(157,36,73,.06), transparent 55%);
    pointer-events: none;
}

/* ── Shell ── */
.shell {
    width: min(1020px, 100%);
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    min-height: 540px;
    animation: fadeUp .45s ease both;
}

@media (min-width: 900px) {
    .shell { grid-template-columns: 1.05fr .95fr; }
}

/* ── Panel izquierdo ── */
.panel {
    display: none;
    position: relative;
    overflow: hidden;
    background: var(--verde);
    padding: 48px 44px;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 900px) { .panel { display: flex; } }

.panel::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .09;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}

.panel::after {
    content: '';
    position: absolute;
    bottom: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,176,166,.28), transparent 70%);
    pointer-events: none;
}

/* Franja textil vertical */
.panel-stripe {
    position: absolute;
    top: 0; right: 0;
    width: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.panel-stripe span { flex: 1; }

.panel-top { position: relative; z-index: 1; }

.panel-logo { margin-bottom: 76px; }
.panel-logo img {
    max-width: 220px;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: .92;
    object-fit: contain;
}

.panel-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
    margin-bottom: 28px;
}

.panel-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 46px;
    line-height: .96;
    letter-spacing: -1px;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.panel-title .line2 {
    color: rgba(255,255,255,.55);
    font-weight: 600;
    font-size: 32px;
    display: block;
    letter-spacing: -.5px;
}

.panel-desc {
    font-size: 13.5px;
    color: rgba(255,255,255,.6);
    line-height: 1.7;
    max-width: 38ch;
    font-weight: 300;
    margin-bottom: 36px;
}

.panel-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.8);
}
.pill-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.panel-sep {
    position: relative; z-index: 1;
    height: 1px;
    background: rgba(255,255,255,.1);
    margin: 28px 0;
}

.panel-footer {
    position: relative; z-index: 1;
    font-size: 11px;
    color: rgba(255,255,255,.35);
    line-height: 1.5;
}

/* ── Card derecha ── */
.card {
    background: var(--blanco);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
    position: relative;
}

/* Franja textil superior */
.card-textile {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    display: flex;
}
.card-textile span { flex: 1; }

/* Logo principal en card */
.card-logo {
    display: flex;
    justify-content: center;
}
.card-logo img {
    max-width: 280px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Logo en mobile (fallback sin panel) */
.card-logo-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}
.card-logo-mobile img { height: 44px; width: auto; }
@media (min-width: 900px) { .card-logo-mobile { display: none; } }

/* Encabezado */
.card-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--vino);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-eyebrow::before {
    content: '';
    display: block;
    width: 18px; height: 2px;
    background: var(--vino);
    border-radius: 2px;
    flex-shrink: 0;
}

.card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 34px;
    letter-spacing: -.5px;
    text-transform: uppercase;
    color: var(--verde);
    line-height: 1;
    margin-bottom: 6px;
}

.card-sub {
    font-size: 13px;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 30px;
}

.divider {
    height: 1px;
    background: var(--gris-line);
    margin-bottom: 28px;
    position: relative;
}
.divider::before {
    content: '';
    position: absolute;
    left: 0; top: -0.5px;
    width: 40px; height: 2px;
    background: var(--vino);
    border-radius: 2px;
}

/* ── Alertas ── */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
    border-left: 3px solid;
}
.alert__icon {
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}
.alert--error { background: rgba(204,40,40,.06); border-color: var(--danger); color: var(--danger); }
.alert--error .alert__icon { background: var(--danger); color: #fff; }
.alert--warning { background: rgba(157,36,73,.06); border-color: var(--vino); color: var(--warning-c); }
.alert--warning .alert__icon { background: var(--vino); color: #fff; font-size: 11px; }
.alert__msg { flex: 1; }
.alert__close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
    color: inherit;
    opacity: .6;
    flex-shrink: 0;
    transition: opacity .15s;
}
.alert__close:hover { opacity: 1; }

/* ── Formulario ── */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--verde);
}

.field input {
    width: 100%;
    border: 1.5px solid var(--gris-line);
    border-radius: 8px;
    padding: 13px 16px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: var(--texto);
    background: var(--gris-bg);
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input::placeholder { color: rgba(107,118,133,.45); }
.field input:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(40,92,77,.1);
    background: var(--blanco);
}

/* Botón */
.btn-submit {
    margin-top: 4px;
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background: var(--verde);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .18s, transform .06s, box-shadow .18s;
    box-shadow: 0 4px 18px rgba(40,92,77,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-submit:hover { background: var(--verde2); box-shadow: 0 6px 24px rgba(40,92,77,.4); }
.btn-submit:active { transform: translateY(1px); }
.btn-arrow {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
}

/* Badge seguro */
.secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: .3px;
}
.secure-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--verde-claro);
    box-shadow: 0 0 0 3px rgba(89,176,56,.18);
    flex-shrink: 0;
}

/* Footer */
.card-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--gris-line);
    font-size: 11.5px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
    font-weight: 300;
}

/* ── Animación ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Accesibilidad ── */
@media (prefers-reduced-motion: reduce) {
    *, .shell { animation: none !important; transition: none !important; }
}




