﻿.auth-page {
  min-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  background: #111;
}

.auth-shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
}

.auth-kicker {
  color: #50e6ff;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 12px;
}

.auth-copy h1 {
  max-width: 520px;
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 700;
}

.auth-copy p {
  max-width: 520px;
  margin: 16px 0 0;
  color: #b7b7b7;
  font-size: 13px;
  line-height: 1.7;
}

.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.auth-points span {
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.12);
  color: #d6d6d6;
  font-size: 11px;
}

.auth-panel {
  background: #1b1b1b;
  border: 1px solid rgba(255,255,255,.14);
  padding: 24px;
}

.auth-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-panel-head img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: #050505;
  border-radius: 2px;
}

.auth-panel-head h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.auth-panel-head p {
  margin: 4px 0 0;
  color: #909090;
  font-size: 12px;
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form label {
  color: #dcdcdc;
  font-size: 12px;
  font-weight: 600;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 2px;
  background: #242424;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.auth-form input:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0,120,212,.25);
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 8px;
  color: #bdbdbd !important;
  font-weight: 500 !important;
}

.auth-check input {
  width: 14px;
  height: 14px;
}

.auth-form button {
  min-height: 34px;
  border: 0;
  border-radius: 2px;
  background: #0078d4;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.auth-links a {
  color: #75beff;
  font-size: 12px;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-error {
  color: #ff8f8f;
  font-size: 12px;
}

@media (max-width: 760px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 20px;
  }

  .auth-copy h1 {
    font-size: 26px;
  }
}
.mfa-qr {
    width: min(260px, 100%);
    margin: 18px auto;
    padding: 14px;
    background: #fff;
    border-radius: 6px;
}

.mfa-qr svg {
    display: block;
    width: 100%;
    height: auto;
}

.mfa-key {
    display: block;
    margin: 12px 0 20px;
    padding: 12px;
    overflow-wrap: anywhere;
    text-align: center;
    font-size: 15px;
    letter-spacing: .08em;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 4px;
}

.mfa-recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 20px 0;
}

.mfa-recovery-codes code {
    padding: 10px;
    text-align: center;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 4px;
}

.auth-primary-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    color: #fff;
    background: #0078d4;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 700;
}

.auth-primary-link:hover {
    color: #fff;
    background: #168de2;
}

@media (max-width: 520px) {
    .mfa-recovery-codes {
        grid-template-columns: 1fr;
    }
}

/* Integración visual de Identity con la landing pública. */
.auth-page {
    position: relative;
    min-height: calc(100vh - 75px);
    overflow: hidden;
    background: transparent;
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: 9% 8%;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 49.92%, rgba(18, 202, 255, .07) 50%, transparent 50.08%),
        linear-gradient(0deg, transparent 49.92%, rgba(18, 202, 255, .035) 50%, transparent 50.08%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
    mask-image: radial-gradient(ellipse at center, #000, transparent 72%);
}

.auth-shell {
    position: relative;
    z-index: 1;
}

.auth-copy p {
    color: #aab8c6;
}

.auth-panel {
    padding: 26px;
    border: 1px solid rgba(143, 190, 225, .24);
    border-radius: 7px;
    background: linear-gradient(145deg, rgba(9, 28, 46, .96), rgba(3, 14, 25, .98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34), 0 0 42px rgba(0, 126, 255, .07);
}

.auth-panel-head img {
    background: transparent;
}

.auth-panel-head p {
    color: #91a4b5;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    border-color: rgba(143, 190, 225, .25);
    border-radius: 4px;
    background: rgba(3, 13, 23, .86);
}

.auth-form button {
    border-radius: 4px;
    background: #078bea;
    box-shadow: 0 10px 28px rgba(0, 139, 235, .2);
    cursor: pointer;
}

.auth-form button:hover {
    background: #159df5;
}
