/* Pantalla de ingreso: foto a la izquierda, formulario a la derecha; en celular solo el formulario. */
:root {
  --dd-login-blue: #0C56C9;
  --dd-login-blue-hover: #0A48A8;
  --dd-login-green: #A0C51E;
  --dd-login-ink: #0F1B2D;
  --dd-login-ink-2: #4A5A70;
  --dd-login-muted: #63728B;
  --dd-login-border: #DDE3EC;
  --dd-login-ground: #F6F8FB;
  --dd-login-danger: #C8352B;
}

*, *::before, *::after { box-sizing: border-box; }
.dd-login { margin: 0; min-height: 100vh; background: var(--dd-login-ground); color: var(--dd-login-ink); font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
.dd-login .hidden { display: none; }
.dd-login svg { flex: none; }

/* Franja de soporte */
.dd-login__support {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px;
  min-height: 40px; padding: 6px 16px; background: var(--dd-login-blue); color: #fff; font-size: 13.5px; text-align: center;
}
.dd-login__support-icon { width: 16px; height: 16px; }
.dd-login__support-link { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 700; text-decoration: none; }
.dd-login__support-link:hover { background: rgba(255, 255, 255, .26); }

.dd-login__layout { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); min-height: calc(100vh - 40px); }

/* Foto */
.dd-login__hero { position: relative; overflow: hidden; background: #0B1B33; }
/* La foto cubre todo el panel; es vertical como el panel, así que el recorte casi no la toca. */
.dd-login__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(1.04) contrast(1.02); }
/* El velo casi no toca la parte de arriba (ahí está la pantalla de la foto) y se cierra abajo, donde va el texto. */
.dd-login__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 22, 45, .22) 0%, rgba(8, 22, 45, 0) 16%, rgba(8, 22, 45, 0) 42%, rgba(8, 22, 45, .58) 64%, rgba(8, 22, 45, .9) 100%); }
.dd-login__hero-logo { display: block; width: 168px; height: auto; margin: 0 0 18px; filter: drop-shadow(0 2px 10px rgba(6, 16, 34, .55)); }
.dd-login__pitch { position: absolute; right: 40px; bottom: 40px; left: 40px; color: #fff; }
.dd-login__tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.dd-login__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--dd-login-green); }
.dd-login__headline { margin: 0; font-size: clamp(28px, 3.1vw, 42px); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; }

/* Formulario */
.dd-login__main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.dd-login__mobile-logo { display: none; }
.dd-login__column { width: 100%; max-width: 448px; }
.dd-login__card { padding: 36px; border: 1px solid var(--dd-login-border); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 12px 32px rgba(15, 27, 45, .06); }
.dd-login__title { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.15; letter-spacing: -.02em; text-align: center; }
.dd-login__lead { margin: 8px 0 26px; font-size: 15.5px; line-height: 1.45; color: var(--dd-login-ink-2); text-align: center; }
.dd-login__message { margin: -8px 0 20px; padding: 10px 14px; border-radius: 10px; background: #EAF1FC; color: var(--dd-login-blue); font-size: 13.5px; font-weight: 600; }
.dd-login__message--error { background: #FDEEED; color: var(--dd-login-danger); }
.dd-login__form { display: flex; flex-direction: column; gap: 18px; }
.dd-login__field { display: flex; flex-direction: column; gap: 7px; }
.dd-login__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dd-login__label { font-size: 13.5px; font-weight: 700; color: var(--dd-login-ink); }
.dd-login__link { color: var(--dd-login-blue); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.dd-login__link:hover { text-decoration: underline; }
.dd-login__link--strong { font-size: inherit; }
.dd-login__input-wrap { position: relative; display: flex; align-items: center; }
.dd-login__input-icon { position: absolute; left: 14px; width: 17px; height: 17px; color: var(--dd-login-muted); pointer-events: none; }
.dd-login__input {
  width: 100%; height: 48px; padding: 0 16px 0 42px; border: 1px solid var(--dd-login-border); border-radius: 12px; background: #fff;
  color: var(--dd-login-ink); font-family: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.dd-login__input::placeholder { color: var(--dd-login-muted); }
.dd-login__input:focus { border-color: var(--dd-login-blue); outline: none; box-shadow: 0 0 0 3px rgba(12, 86, 201, .14); }
.dd-login__input--password { padding-right: 46px; }
.dd-login__reveal { position: absolute; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--dd-login-muted); cursor: pointer; }
.dd-login__reveal:hover { color: var(--dd-login-ink); }
.dd-login__reveal svg { width: 17px; height: 17px; }
.dd-login__remember { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--dd-login-ink-2); cursor: pointer; }
.dd-login__remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--dd-login-blue); }
.dd-login__submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; margin-top: 4px; border: 0; border-radius: 999px;
  background: var(--dd-login-blue); color: #fff; font-family: inherit; font-size: 15.5px; font-weight: 800; cursor: pointer;
  box-shadow: 0 6px 16px rgba(12, 86, 201, .24); transition: background .15s, transform .05s;
}
.dd-login__submit:hover { background: var(--dd-login-blue-hover); }
.dd-login__submit:active { transform: translateY(1px); }
.dd-login__submit svg { width: 17px; height: 17px; }
.dd-login :is(a, button, input):focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(12, 86, 201, .3); }
.dd-login__below { margin: 26px 0 0; text-align: center; font-size: 14.5px; color: var(--dd-login-ink-2); }
.dd-login__legal { margin: 22px 0 0; text-align: center; font-size: 12px; color: var(--dd-login-muted); }

@media (max-width: 900px) {
  .dd-login__layout { grid-template-columns: 1fr; }
  .dd-login__hero { display: none; }
  .dd-login__main { justify-content: flex-start; padding: 28px 16px 40px; }
  .dd-login__mobile-logo { display: block; align-self: center; width: 132px; height: auto; margin: 0 0 32px; }
  .dd-login__card { padding: 28px 22px; }
  .dd-login__title { font-size: 25px; }
}
@media (max-width: 600px) {
  .dd-login__support { flex-wrap: nowrap; justify-content: space-between; text-align: left; }
  .dd-login__support-detail { display: none; }
}
