/* =============================================================
   LOGIN PAGE — Roldan Autos
   Tema oscuro consistente con la web pública
   Colores: #76b82a (verde), #0a0a0a / #111 (dark)
   ============================================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #0a0a0a;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #fff;
}

/* ── WRAPPER ─────────────────────────────────────────────────── */

.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ── HERO (panel izquierdo) ──────────────────────────────────── */

.login-hero {
    flex: 1.1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    background: #0a0a0a;
    overflow: hidden;
}

/* Patrón de puntos — igual que la home web */
.login-hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

/* Glow verde — abajo derecha */
.login-hero::before {
    content: '';
    position: absolute;
    bottom: -120px;
    right: -120px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(118,184,42,0.16) 0%, transparent 60%);
    pointer-events: none;
}

/* Glow verde tenue — arriba izquierda */
.login-hero::after {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(118,184,42,0.07) 0%, transparent 65%);
    pointer-events: none;
}

/* ── HERO CONTENT ────────────────────────────────────────────── */

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
    width: 100%;
}

.hero-logo {
    height: 54px;
    width: auto;
    margin-bottom: 2.5rem;
    display: block;
    filter: drop-shadow(0 0 18px rgba(118,184,42,0.35));
}

/* Badge "Sistema de Gestión" */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(118,184,42,0.1);
    border: 1px solid rgba(118,184,42,0.28);
    border-radius: 50px;
    padding: 5px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #76b82a;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 1.35rem;
}

.hero-eyebrow i {
    font-size: 0.75rem;
}

.hero-title {
    font-size: clamp(1.65rem, 2.8vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.hero-title span {
    color: #76b82a;
}

.hero-desc {
    color: rgba(255,255,255,0.48);
    font-size: 0.88rem;
    line-height: 1.8;
    max-width: 330px;
    margin-bottom: 2.25rem;
}

/* Divisor antes de features */
.login-hero-features {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.login-feat {
    color: rgba(255,255,255,0.58);
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-feat i {
    color: #76b82a;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ── PANEL DERECHO (formulario) ──────────────────────────────── */

.login-panel {
    width: 500px;
    min-width: 420px;
    background: #111111;
    border-left: 1px solid rgba(255,255,255,0.055);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 2.75rem;
    position: relative;
}

.login-box {
    width: 100%;
    max-width: 380px;
}

/* ── HEADER DEL BOX ──────────────────────────────────────────── */

.login-box-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.login-box-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(118,184,42,0.08);
    border: 1.5px solid rgba(118,184,42,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: #76b82a;
    margin: 0 auto 1.4rem;
    box-shadow: 0 0 30px rgba(118,184,42,0.1);
}

.login-box-header h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.35rem;
    letter-spacing: -0.4px;
}

.login-box-header p {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.38);
    margin-bottom: 0;
}

/* ── LABELS ──────────────────────────────────────────────────── */

.login-box .form-label {
    color: rgba(255,255,255,0.52);
    font-size: 0.81rem;
    font-weight: 500;
    margin-bottom: 0.45rem;
    letter-spacing: 0.1px;
}

/* ── INPUT GROUP ─────────────────────────────────────────────── */

.login-box .input-group {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-box .input-group:focus-within {
    border-color: #76b82a;
    box-shadow: 0 0 0 3px rgba(118,184,42,0.12);
}

.login-box .input-group-text {
    background: rgba(255,255,255,0.04);
    border: none;
    color: rgba(255,255,255,0.32);
    padding-left: 14px;
    padding-right: 10px;
}

.login-box .form-control {
    background: rgba(255,255,255,0.04);
    border: none;
    color: #fff;
    font-size: 0.92rem;
    height: 48px;
    padding-left: 4px;
    box-shadow: none;
}

.login-box .form-control::placeholder {
    color: rgba(255,255,255,0.18);
}

.login-box .form-control:focus {
    background: rgba(255,255,255,0.065);
    box-shadow: none;
    color: #fff;
    border-color: transparent;
}

/* ── TOGGLE PASSWORD ─────────────────────────────────────────── */

.toggle-pass {
    background: rgba(255,255,255,0.04);
    border: none;
    color: rgba(255,255,255,0.32);
    padding: 0 14px;
    height: 48px;
    transition: color 0.15s, background 0.15s;
}

.toggle-pass:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.65);
}

.toggle-pass:focus {
    box-shadow: none;
    color: rgba(255,255,255,0.65);
}

/* ── ALERTAS ─────────────────────────────────────────────────── */

.login-box .alert-danger {
    background: rgba(220,53,69,0.12);
    border: 1px solid rgba(220,53,69,0.25);
    color: #ff8a9a;
    font-size: 0.84rem;
    border-radius: 8px;
}

/* ── BOTÓN PRINCIPAL ─────────────────────────────────────────── */

.btn-login-ra {
    background: #76b82a;
    border: none;
    color: #0a0a0a;
    font-weight: 700;
    padding: 13px 24px;
    height: 50px;
    border-radius: 50px;
    font-size: 0.94rem;
    letter-spacing: 0.15px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn-login-ra:hover {
    background: #94d040;
    color: #0a0a0a;
    box-shadow: 0 8px 30px rgba(118,184,42,0.38);
    transform: translateY(-1px);
}

.btn-login-ra:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ── BACK LINK ───────────────────────────────────────────────── */

.login-back-link a {
    color: rgba(255,255,255,0.28) !important;
    font-size: 0.82rem;
    text-decoration: none !important;
    transition: color 0.15s;
}

.login-back-link a:hover {
    color: rgba(255,255,255,0.6) !important;
}

/* ── CRÉDITOS ────────────────────────────────────────────────── */

.login-credits {
    position: absolute;
    bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-credits-text {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.2);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */

@media (max-width: 860px) {
    .login-hero {
        display: none;
    }

    .login-panel {
        width: 100%;
        min-width: unset;
        padding: 2.5rem 1.5rem;
        background: #0a0a0a;
        border-left: none;
    }
}
