/* Página de inicio de sesión / registro */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.auth-header { display: flex; justify-content: space-between; align-items: center; height: 64px; padding: 0 32px; border-bottom: 1px solid var(--line); }
.auth-wrap { flex: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 64px); }
.auth-left { display: flex; align-items: center; justify-content: flex-end; padding: 48px 120px 48px 32px; }
.auth-card { width: min(480px, 100%); }
.auth-right { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.auth-right img { width: min(100%, 860px); height: auto; }

.auth-card h1 { font-size: 36px; letter-spacing: -.03em; margin-bottom: 18px; }
.auth-card .sub { color: var(--muted); margin: -6px 0 18px; }

.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg-soft); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.seg3 button { border: 0; background: none; padding: 12px; border-radius: 8px; font: 500 14px "Inter", sans-serif; color: var(--ink-2); cursor: pointer; }
.seg3 button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.06); }

.in {
  width: 100%; padding: 14px 22px; border: 1px solid #d0d5dd; border-radius: 4px; font: 400 16px "Inter", sans-serif;
  color: var(--ink); background: #fff; margin-bottom: 24px; outline: none; transition: border-color .15s;
}
.in::placeholder { color: #98a2b3; }
.in:focus { border-color: var(--green); }
.in.bad { border-color: #ef4444; }
.phone-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.cc { padding-inline: 12px; }

.pass-wrap { position: relative; }
.pass-wrap .in { padding-right: 52px; }
.eye {
  position: absolute; right: 12px; top: 13px; width: 26px; height: 22px; border: 0; cursor: pointer; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23344054' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E") center/22px no-repeat;
}
.eye.on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23344054' stroke-width='1.8'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }

.remember-row { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 28px; }
.remember-row .consent { margin: 0; align-items: center; font-size: 16px; color: var(--ink-2); }
.auth-card .consent .switch { flex-basis: 44px; height: 24px; }
.auth-card .consent .switch::after { width: 20px; height: 20px; }
.auth-card .consent input:checked + .switch::after { left: 22px; }
#regForm .consent { margin: -6px 0 22px; font-size: 13px; }
#regForm .consent .switch { margin-top: 0; }

.more { position: relative; }
.dots { border: 0; background: none; font-size: 18px; color: #98a2b3; cursor: pointer; padding: 4px 8px; letter-spacing: 1px; }
.more-menu { position: absolute; right: 0; top: 30px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; min-width: 210px; z-index: 5; }
.more-menu a { display: block; padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.more-menu a:hover { background: var(--bg-soft); }

.btn.wide { width: 100%; padding: 16px; border-radius: 4px; font-size: 16px; }
.err { color: #dc2626; font-size: 14px; min-height: 0; margin: -10px 0 14px; }
.err:empty { display: none; }
.ok { color: var(--green-700); background: var(--green-50); padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }

.links { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.links a { color: var(--green-600); font-weight: 500; }
.links a:hover { text-decoration: underline; }
.links > span:empty { width: 1px; height: 20px; background: var(--line); }

.qr-pane { text-align: center; color: var(--ink-2); font-size: 14px; }
.qr { width: 200px; height: 200px; margin: 0 auto 18px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.qr svg { width: 100%; height: 100%; display: block; }

@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-right { display: none; }
  .auth-left { justify-content: center; padding: 40px 16px; }
  .auth-header { padding: 0 16px; }
}
