/* =============================================
   login.css — Pantalla de inicio de sesión
   minohub · Business Manager
   ============================================= */

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

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f0f4f8;
}

/* ── Layout principal ────────────────────────── */
.login-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ── Panel izquierdo: formulario ─────────────── */
.login-panel {
    width: 420px;
    min-width: 380px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.75rem;
    box-shadow: 4px 0 32px rgba(0, 0, 0, .12);
    position: relative;
    z-index: 2;
}

.login-brand {
    margin-bottom: 2.5rem;
}

.login-brand-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .4rem;
}

.login-brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0a6ebd, #0d9488);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.login-brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.5px;
}

.login-brand-sub {
    font-size: .78rem;
    color: #64748b;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding-left: 2px;
}

.login-heading {
    font-size: 1.55rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 .35rem;
    letter-spacing: -.4px;
}

.login-subheading {
    font-size: .875rem;
    color: #64748b;
    margin: 0 0 1.75rem;
}

/* ── Formulario ──────────────────────────────── */
.login-form .form-label {
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .35rem;
}

.login-form .form-control {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: .6rem .85rem;
    font-size: .9rem;
    transition: border-color .18s, box-shadow .18s;
    background: #f8fafc;
}

.login-form .form-control:focus {
    border-color: #0a6ebd;
    box-shadow: 0 0 0 3px rgba(10, 110, 189, .12);
    background: #fff;
    outline: none;
}

.login-form .input-group-text {
    border: 1.5px solid #e2e8f0;
    border-right: none;
    background: #f8fafc;
    color: #94a3b8;
    border-radius: 8px 0 0 8px;
}

.login-form .input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.btn-login {
    background: linear-gradient(135deg, #0a6ebd, #0d9488);
    border: none;
    border-radius: 8px;
    padding: .65rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    width: 100%;
    margin-top: .5rem;
    transition: opacity .2s, transform .15s;
    cursor: pointer;
}

.btn-login:hover {
    opacity: .92;
    transform: translateY(-1px);
    color: #fff;
}

.btn-login:active {
    transform: translateY(0);
}

/* ── Error ───────────────────────────────────── */
.login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: .65rem .9rem;
    font-size: .84rem;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
}

/* ── Footer del panel ────────────────────────── */
.login-ayuda {
    margin: 1rem 0 0;
    font-size: .8rem;
    color: #475569;
    line-height: 1.45;
}

.login-footer {
    margin-top: 2rem;
    font-size: .75rem;
    color: #94a3b8;
    text-align: center;
}

/* ── Panel derecho: imagen de fondo ──────────── */
.login-bg {
    flex: 1;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(160deg,
            #0c1f3d 0%,
            #0a4a6e 35%,
            #0d9488 70%,
            #065f46 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Círculos decorativos */
.login-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .08);
    top: -140px;
    right: -140px;
    pointer-events: none;
}

.login-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, .25) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}

.login-bg-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 520px;
}

.login-bg-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    opacity: .9;
}

.login-bg-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -.5px;
    margin-bottom: 1rem;
}

.login-bg-title span {
    color: #5eead4;
}

.login-bg-desc {
    font-size: .95rem;
    color: rgba(255, 255, 255, .7);
    line-height: 1.65;
    margin-bottom: 2rem;
}

/* Feature pills */
.login-features {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    align-items: flex-start;
    display: inline-flex;
}

.login-feature-pill {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 40px;
    padding: .5rem 1rem;
    font-size: .82rem;
    color: rgba(255, 255, 255, .9);
    white-space: nowrap;
}

.login-feature-pill i {
    color: #5eead4;
    font-size: .9rem;
}

/* Círculo decorativo flotante */
.login-bg-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .06);
    pointer-events: none;
}

.login-bg-circle-1 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    right: 5%;
}

.login-bg-circle-2 {
    width: 180px;
    height: 180px;
    top: 20%;
    left: 8%;
}

/* ── Botón "Ver planes" ──────────────────────── */
.btn-ver-planes {
    display: inline-flex;
    align-items: center;
    margin-top: 1.75rem;
    padding: .6rem 1.4rem;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, .35);
    border-radius: 40px;
    font-size: .85rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .15s;
}

.btn-ver-planes:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .6);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
    .login-bg { display: none; }
    .login-panel {
        width: 100%;
        min-width: unset;
        box-shadow: none;
        padding: 2rem 1.5rem;
    }
}
