/* OSales · pantallas de acceso (login, registro, pago). Requiere osales.css. */
:root {
  --bg: #F7F6FB; --surface: #FFFFFF; --field: #F7F6FB; --border: #E6E2F0;
  --text: #0A032C; --muted: #5E5A72; --accent: #7240FB; --accent-h: #5A2BE0; --tint: #F2EEFE;
  --magenta: #F91086; --red: #E5484D; --green: #13A06B;
}
[data-theme="dark"] {
  --bg: #0C021D; --surface: #160A30; --field: #0C021D; --border: #2A1D4D;
  --text: #F3F0FF; --muted: #A9A3C6; --accent: #9C7BFF; --accent-h: #AD92FC; --tint: #1C0F3C;
  --red: #FF6B86; --green: #4FD39A;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--os-font); font-weight: 500; background: var(--bg); color: var(--text); min-height: 100vh; font-size: 15px; line-height: 1.5; }

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-brand { padding: 40px clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-brand .os-lk { font-size: 30px; color: #FFFFFF; }
.auth-brand h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; max-width: 14ch; }
.auth-brand .bubbles { display: flex; flex-direction: column; gap: 8px; max-width: 380px; margin-top: 22px; }
.auth-brand .os-bub.in { background: rgba(255,255,255,.1); color: #FFFFFF; }
.auth-brand .os-bub { font-size: 14.5px; }
.auth-brand .nota { font-size: 13.5px; color: #C9C2EA; }

.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.card { width: 100%; max-width: 440px; }
.card-wide { max-width: 520px; }
.mobile-logo { display: none; font-size: 26px; margin-bottom: 28px; }

h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 6px; }
.sub { color: var(--muted); font-size: 15px; margin-bottom: 26px; }

.field { margin-bottom: 16px; }
label { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
input { width: 100%; padding: 11px 14px; background: var(--field); border: 1.5px solid var(--border); border-radius: 12px; color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: #7240FB; box-shadow: 0 0 0 3px rgba(114,64,251,.2); }

.btn { width: 100%; padding: 13px; background: var(--os-violeta); color: #FFFFFF; border: none; border-radius: 12px; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; margin-top: 8px; transition: background .15s; }
.btn:hover { background: var(--os-violeta-600); }
.btn.btn-cta { background: var(--os-magenta); }
.btn.btn-cta:hover { background: #D90A72; }
.btn:disabled, .btn:disabled:hover { opacity: .5; cursor: not-allowed; background: var(--os-violeta); }
.btn-ghost { width: 100%; padding: 11px; background: transparent; color: var(--text); border: 0; box-shadow: inset 0 0 0 1.5px var(--border); border-radius: 12px; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; margin-top: 8px; transition: .15s; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }

.btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1.5px var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: .15s; }
.btn-google:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
.divisor { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.divisor::before, .divisor::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.google-ok { font-size: 14px; color: var(--muted); margin-bottom: 16px; padding: 10px 12px; border-radius: 12px; background: var(--tint); }

.error { background: rgba(229,72,77,.08); border: 1px solid var(--red); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--red); margin-bottom: 16px; display: none; }
.success { background: rgba(19,160,107,.08); border: 1px solid var(--green); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--green); margin-bottom: 16px; display: none; }

.footer-link { text-align: center; font-size: 14px; color: var(--muted); margin-top: 20px; }
.footer-link a { color: var(--accent); font-weight: 700; text-decoration: none; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #FFFFFF; border-radius: 50%; animation: spin .6s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .mobile-logo { display: inline-flex; }
  .auth-form { align-items: flex-start; padding: 32px 16px 48px; }
}
