/* ============================================================
   Zhong Yi · 中医 — Login (dos paneles)
   ============================================================ */
.login-wrap {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background: var(--gradient-login);
    background-size: 200% 200%;
    animation: bgShift 18s ease infinite;
    transition: background var(--t-base);
}
@keyframes bgShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Formas decorativas difuminadas */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .4;
    pointer-events: none;
    animation: float 14s ease-in-out infinite;
    background: var(--color-primary);
}
.blob-1 { width: 420px; height: 420px; top: -120px; left: -100px; }
.blob-2 { width: 360px; height: 360px; bottom: -140px; right: -80px; animation-delay: -4s; opacity: .3; }
.blob-3 { width: 240px; height: 240px; top: 40%; right: 18%; opacity: .22; animation-delay: -8s; }
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50%      { transform: translateY(-30px) translateX(20px); }
}

/* Contenedor en dos columnas */
.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
    animation: rise .6s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise {
    from { opacity: 0; transform: translateY(24px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* ── Panel de marca (izquierda) ── */
.login-brand {
    position: relative;
    padding: 40px 38px;
    color: #fff;
    background: var(--gradient-brand);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.login-brand::after {
    content: "";
    position: absolute;
    inset: auto -60px -80px auto;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
    border-radius: 50%;
}
.brand-top { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; letter-spacing: .15rem;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(4px);
}
.brand-name { font-size: 1.18rem; font-weight: 800; letter-spacing: .01rem; line-height: 1.2; }
.brand-name span { display: block; font-weight: 400; opacity: .8; font-size: .82rem; letter-spacing: .03rem; }

.brand-mid { margin-top: auto; padding-top: 28px; }
.brand-mid h2 { font-size: 1.5rem; font-weight: 700; line-height: 1.3; margin: 0; }
.brand-mid p  { margin-top: 12px; font-size: .9rem; opacity: .82; line-height: 1.5; max-width: 34ch; }

.brand-feats { list-style: none; margin: 26px 0 0; padding: 0; }
.brand-feats li { font-size: .85rem; opacity: .92; padding: 5px 0; display: flex; align-items: center; gap: 9px; }
.brand-feats i  { color: rgba(255,255,255,.85); font-size: .95rem; }

.brand-foot { margin-top: 28px; font-size: .72rem; opacity: .6; }

/* ── Panel de formulario (derecha) ── */
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 44px 40px; }
.form-inner { width: 100%; max-width: 340px; }

.form-mark-mobile { display: none; }

.form-title { font-size: 1.5rem; font-weight: 800; color: var(--color-text); margin: 0; }
.form-sub   { font-size: .86rem; color: var(--color-text-soft); margin: 6px 0 26px; }

.form-label-custom {
    display: block;
    font-size: .74rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .04rem; color: var(--color-text-soft); margin-bottom: 7px;
}

.login-field-wrap {
    display: flex; align-items: center;
    border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-md);
    background: var(--color-surface-alt);
    overflow: hidden;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.login-field-wrap:focus-within {
    border-color: var(--color-primary);
    background: var(--color-surface);
    box-shadow: 0 0 0 4px var(--color-primary-shadow);
}
.login-field-icon {
    width: 44px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-soft); font-size: 1rem;
    transition: color .18s;
}
.login-field-wrap:focus-within .login-field-icon { color: var(--color-primary); }
.login-field-wrap input {
    border: none; outline: none; background: transparent;
    flex: 1; height: 46px; padding: 0 6px 0 0;
    font-size: .92rem; color: var(--color-text);
}
.login-eye {
    border: none; background: transparent; color: var(--color-text-soft);
    width: 44px; height: 46px; cursor: pointer; font-size: 1rem;
    transition: color .15s;
}
.login-eye:hover { color: var(--color-primary); }

.btn-login {
    width: 100%; padding: 13px;
    border: none; border-radius: var(--radius-md);
    background: var(--gradient-brand);
    color: #fff; font-size: .96rem; font-weight: 600; cursor: pointer;
    box-shadow: 0 10px 24px var(--color-primary-shadow);
    transition: transform .15s, box-shadow .15s, opacity .15s;
}
.btn-login:hover  { transform: translateY(-2px); box-shadow: 0 16px 32px var(--color-primary-shadow); }
.btn-login:active { transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 820px) {
    .login-shell { grid-template-columns: 1fr; max-width: 420px; }
    .login-brand { display: none; }
    .login-form-side { padding: 38px 30px; }
    .form-mark-mobile {
        display: flex; align-items: center; gap: 10px;
        font-size: 1.6rem; letter-spacing: .2rem; font-weight: 700; color: var(--color-primary);
        margin-bottom: 8px;
    }
    .form-mark-mobile span { font-size: .8rem; letter-spacing: .03rem; color: var(--color-text-soft); font-weight: 400; }
}
