/* ============================================================
   SistemaConsultorio — Estilos de login
   ============================================================ */

.login-body {
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

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

/* ── Panel izquierdo ──────────────────────────────────────── */
.login-panel--left {
  flex: 1;
  background: linear-gradient(145deg, #0d4a63 0%, #1a6b8a 50%, #1a9b6a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.login-panel--left::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  top: -100px; right: -100px;
}
.login-panel--left::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  bottom: -80px; left: -60px;
}

.login-deco { position: relative; z-index: 1; max-width: 380px; }

.deco-icon {
  font-size: 3.5rem;
  margin-bottom: 24px;
  display: block;
}

.deco-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}

.deco-text {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 32px;
}

.deco-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.deco-features li {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Panel derecho ──────────────────────────────────────── */
.login-panel--right {
  width: 460px;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  box-shadow: -8px 0 40px rgba(0,0,0,.08);
}

.login-form-container {
  width: 100%;
  max-width: 360px;
}

.login-logo {
  font-size: 2.5rem;
  margin-bottom: 8px;
  text-align: center;
}

.login-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: .875rem;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 28px;
}

/* ── Input con ícono ───────────────────────────────────── */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 12px;
  font-size: .95rem;
  pointer-events: none;
}
.input-wrapper input {
  width: 100%;
  padding: 11px 42px 11px 36px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--color-text);
  transition: border-color .2s, box-shadow .2s;
  font-family: var(--font-sans);
}
.input-wrapper input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,107,138,.12);
}
.toggle-password {
  position: absolute; right: 10px;
  background: none; border: none;
  cursor: pointer; font-size: .9rem;
  padding: 2px;
}

/* ── Botón de login ────────────────────────────────────── */
.btn-login {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  margin-top: 4px;
  font-family: var(--font-sans);
}
.btn-login:hover  { opacity: .9; }
.btn-login:active { transform: scale(.99); }

.login-footer {
  text-align: center;
  font-size: .78rem;
  color: var(--color-subtle);
  margin-top: 28px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .login-panel--left { display: none; }
  .login-panel--right {
    width: 100%;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  .login-panel--right { padding: 32px 24px; }
}
