/* ══════════════════════════════════════════════════
   login.css  —  Página de acceso DBLinkOn
══════════════════════════════════════════════════ */

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

body::before {
  background:
    radial-gradient(ellipse 70% 60% at 20% 10%, rgba(29,140,255,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 80% 90%, rgba(29,140,255,0.08) 0%, transparent 55%);
}

/* ── CARD ────────────────────────────────────────── */
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 44px 36px 40px;
  box-shadow:
    0 0 0 1px rgba(29,140,255,0.06),
    0 32px 80px -12px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.06);
  animation: card-in .6s var(--ease) both;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29,140,255,0.5), transparent);
  border-radius: 28px 28px 0 0;
}

/* ── BRAND ───────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.brand-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  fill: none;
}

.brand-name {
  font-size: 20px;
}

/* ── FORM HEADER ────────────────────────────────── */
.form-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.form-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .08em;
  margin-bottom: 28px;
}

/* ── FIELDS ──────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

input[type="email"],
input[type="password"] {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s;
}

input::placeholder { color: rgba(232,237,245,0.2); }

input:focus {
  border-color: rgba(29,140,255,0.6);
  background: rgba(29,140,255,0.05);
}

/* ── FORGOT LINK ────────────────────────────────── */
.forgot-wrap {
  text-align: right;
  margin-top: 6px;
  margin-bottom: 24px;
}

.forgot-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.forgot-btn:hover { color: var(--blue); }

/* ── SUBMIT BUTTON ──────────────────────────────── */
.btn-submit {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  border: none;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: all .22s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left .5s;
}

.btn-submit:hover         { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(29,140,255,0.4); }
.btn-submit:hover::before { left: 100%; }
.btn-submit:active        { transform: translateY(0); }
.btn-submit:disabled      { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── STATUS MESSAGE ─────────────────────────────── */
.status-msg {
  display: none;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid;
  margin-bottom: 16px;
  letter-spacing: .04em;
}

.status-msg.visible { display: block; }
.status-msg.error   { color: var(--rose); background: rgba(255,77,109,0.08); border-color: rgba(255,77,109,0.2); }
.status-msg.success { color: var(--blue); background: var(--blue-dim); border-color: rgba(29,140,255,0.25); }

/* ── DIVIDER ─────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0 20px;
}

/* ── POWERED ─────────────────────────────────────── */
.powered {
  margin-top: 0;
}

/* ── SHAKE ANIMATION ────────────────────────────── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  60%       { transform: translateX(6px); }
}
.shake { animation: shake 0.3s ease-in-out; }
