/* Akun Arratrra: one sign-in for Arratrrabooks, Arratrrastore and Arratrrapost. White page, navy and sky blue, Open Sans, pill buttons. */
:root {
  --ink: #0A1128; --navy: #203268; --blue: #0b2a9c; --sky: #0088cc; --accent: #0071ab; --mut: #596079; --line: #E3E8F0; --field: #F2F5FA; --tint: #EEF3F9;
  --ok: #1F9D6B; --bad: #C73A27;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background: #F6F9FD; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px 16px 16px; font-family: var(--sans); color: var(--ink); background: transparent; line-height: 1.5; -webkit-font-smoothing: antialiased; }
::selection { background: #BFE3F7; color: var(--ink); }
/* soft white stage with quiet ornaments (blurred colour, rings, the brand triangle, dot grids); purely decorative */
.stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FD 55%, #EAF1FA 100%); }
.stage .orb { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.stage .o1 { width: 52vmax; height: 52vmax; left: -20vmax; top: -24vmax; background: radial-gradient(circle at 40% 40%, rgba(0, 136, 204, .22), transparent 68%); animation: drift1 30s ease-in-out infinite alternate; }
.stage .o2 { width: 44vmax; height: 44vmax; right: -16vmax; top: 4vmax; background: radial-gradient(circle at 55% 45%, rgba(32, 50, 104, .16), transparent 66%); animation: drift2 36s ease-in-out infinite alternate; }
.stage .o3 { width: 40vmax; height: 40vmax; left: 12vmax; bottom: -26vmax; background: radial-gradient(circle at 50% 50%, rgba(127, 208, 255, .35), transparent 70%); animation: drift3 40s ease-in-out infinite alternate; }
.stage .ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(32, 50, 104, .12); }
.stage .r1 { width: 420px; height: 420px; right: 6%; top: 8%; }
.stage .r1::after { content: ""; position: absolute; inset: 46px; border-radius: 50%; border: 1.5px dashed rgba(0, 136, 204, .22); }
.stage .r2 { width: 300px; height: 300px; left: 4%; bottom: 10%; border-color: rgba(0, 136, 204, .16); }
.stage .tri { position: absolute; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23203268' stroke-width='1.6' stroke-linejoin='round'><path d='M30.2 10.6c.8-1.4 2.8-1.4 3.6 0l19.6 36.2c.5 1-.2 2.2-1.3 2.2h-4.2c-.6 0-1.1-.3-1.3-.8L32 21.4 17.4 48.2c-.3.5-.8.8-1.3.8h-4.2c-1.1 0-1.8-1.2-1.3-2.2z'/></svg>") center / contain no-repeat; opacity: .14; }
.stage .t1 { width: 190px; height: 190px; left: 7%; top: 12%; transform: rotate(-14deg); }
.stage .t2 { width: 120px; height: 120px; right: 9%; bottom: 14%; transform: rotate(18deg); opacity: .1; }
.stage .dots { position: absolute; width: 220px; height: 150px; background-image: radial-gradient(rgba(32, 50, 104, .28) 1.6px, transparent 1.7px); background-size: 22px 22px; opacity: .45; -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%); mask-image: radial-gradient(closest-side, #000 40%, transparent 100%); }
.stage .d1 { right: 4%; bottom: 20%; }
.stage .d2 { left: 10%; top: 44%; }
.stage .spot { position: absolute; inset: 0; background: radial-gradient(480px circle at var(--mx, 70%) var(--my, 30%), rgba(0, 136, 204, .08), transparent 62%); }
@keyframes drift1 { to { transform: translate(8vmax, 6vmax) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-7vmax, 5vmax) scale(1.12); } }
@keyframes drift3 { to { transform: translate(6vmax, -5vmax) scale(1.06); } }
@media (max-width: 720px) { .stage .ring, .stage .t1, .stage .d2 { display: none; } }
@media (prefers-reduced-motion: reduce) { .stage .orb { animation: none; } }

a { color: var(--accent); }
a:hover { color: var(--navy); }

.brand { display: flex; justify-content: center; margin: 0 0 8px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.foot { text-align: center; font-size: .72rem; letter-spacing: .12em; }
.foot a { color: var(--mut); text-decoration: none; }
.foot a:hover { color: var(--navy); }

.card { position: relative; width: min(420px, 100%); padding: clamp(18px, 3vw, 26px) clamp(20px, 3vw, 28px) clamp(20px, 3vw, 26px); border-radius: 22px; overflow: hidden; isolation: isolate; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -36px rgba(32, 50, 104, .35), 0 2px 6px rgba(32, 50, 104, .05); animation: rise .9s var(--ease) both; }
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--sky)); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }

.eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 10px; font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.eyebrow .line { display: block; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.eyebrow .line:last-child { background: linear-gradient(270deg, transparent, currentColor); }

/* one account for every site: the three logos under the brand */
.apps { margin: 0 0 14px; padding: 9px 10px 6px; border-radius: 16px; background: var(--tint); text-align: center; }
.apps-t { margin: 0 0 4px; font-size: .78rem; font-weight: 600; color: var(--mut); }
.apps-t b { color: var(--navy); }
.apps ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.apps li { display: block; }
.apps li a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px 3px; border-radius: 12px; color: inherit; text-decoration: none; transition: background .25s, transform .25s var(--ease); }
.apps li a:hover { background: #fff; transform: translateY(-2px); }
.apps li a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; background: #fff; }
.apps li img { display: block; width: 30px; height: 30px; border-radius: 50%; }
.apps li span { font-size: .74rem; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.apps li span b { font-weight: 800; }
.apps li span i { font-style: normal; font-weight: 400; color: var(--accent); }

h1 { margin: 0 0 12px; font-size: clamp(1.55rem, 4.4vw, 1.9rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; color: var(--ink); }
h2 { margin: 16px 0 8px; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.hl { font-style: italic; font-weight: 300; color: var(--sky); letter-spacing: -.04em; }
p { margin: 0 0 10px; color: var(--mut); }

form { display: grid; gap: 9px; margin-top: 2px; }
label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--ink); }
input { font: inherit; font-size: .95rem; width: 100%; padding: 10px 14px; border: 1px solid transparent; border-radius: 12px; background: var(--field); color: var(--ink); transition: background .3s, box-shadow .3s, border-color .3s; }
input::placeholder { color: #8A93AB; }
input:focus { outline: none; background: #fff; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(0, 136, 204, .18); }

button, .btn-alt { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 2px; padding: 11px 24px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; font-size: .92rem; text-decoration: none; cursor: pointer; transition: transform .5s var(--ease), box-shadow .5s, background .3s, color .3s; }
button { background: var(--navy); color: #fff; }
button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(127, 208, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
button::after { content: "\2192"; transition: transform .5s var(--ease); }
button:hover::before, button:focus-visible::before { transform: translateX(120%); }
button:hover, button:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(32, 50, 104, .6); }
button:hover::after { transform: translateX(6px); }
.btn-alt { margin-top: 8px; background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-alt:hover { background: var(--tint); color: var(--navy); }
.btn-alt .g-ico { flex: none; width: 18px; height: 18px; }

.error { margin: 0 0 8px; font-weight: 600; color: var(--bad); }
.notice { margin: 0 0 8px; font-weight: 600; color: var(--ok); }
.hint { margin: -4px 0 0; font-size: .82rem; color: var(--mut); }
.callout { margin: 22px 0 6px; padding: 12px 16px; border-radius: 14px; background: var(--tint); font-size: .86rem; line-height: 1.6; color: var(--mut); }
.links { margin: 12px 0 0; font-size: .86rem; color: var(--mut); }
ul { margin: 0; padding-left: 20px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.codes li { padding: 8px 12px; border-radius: 12px; background: var(--field); text-align: center; }
.secret { display: block; padding: 12px 14px; border-radius: 14px; background: var(--field); word-break: break-all; font-size: 1rem; letter-spacing: .06em; }
strong { font-weight: 700; color: var(--ink); }

.pw { position: relative; display: block; }
.pw input { padding-right: 46px; }
button.eye { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 34px; height: 34px; margin: 0; padding: 0; gap: 0; border-radius: 50%; background: transparent; color: var(--mut); box-shadow: none; }
button.eye::before, button.eye::after { content: none; }
button.eye:hover, button.eye:focus-visible { transform: translateY(-50%); background: var(--tint); color: var(--navy); box-shadow: none; }
button.eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
button.eye .i-hide { display: none; }
button.eye[aria-pressed="true"] .i-show { display: none; }
button.eye[aria-pressed="true"] .i-hide { display: block; }

.pw .ok { position: absolute; top: 50%; right: 50px; transform: translateY(-50%) scale(.6); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #2fbf71; color: #04210f; opacity: 0; transition: opacity .25s, transform .4s var(--ease); pointer-events: none; }
.pw .ok svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pw.chk input { padding-right: 84px; }
.pw.valid .ok { opacity: 1; transform: translateY(-50%) scale(1); }
.pw.valid input { border-color: #2fbf71; box-shadow: 0 0 0 2px rgba(47, 191, 113, .25); }
.rules { list-style: none; margin: -2px 0 0; padding: 0; display: grid; gap: 4px; font-size: .84rem; color: var(--mut); }
.rules li { display: flex; align-items: center; gap: 8px; transition: color .25s; }
.rules li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #B8C0D4; transition: background .25s, border-color .25s; }
.rules li.met { color: var(--ok); }
.rules li.met::before { border-color: #2fbf71; background: #2fbf71 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304210f' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center / 11px no-repeat; }

form.inline { display: inline; margin: 0; }
button.linklike { display: inline; width: auto; margin: 0; padding: 0; background: none; color: var(--accent); font-weight: 400; text-decoration: underline; border-radius: 0; box-shadow: none; }
button.linklike::before, button.linklike::after { content: none; }
button.linklike:hover { transform: none; box-shadow: none; color: var(--navy); background: none; }

/* error pages: the big status number above the title */
.errcode { margin: 6px 0 0; font-size: clamp(3.4rem, 14vw, 5.2rem); font-weight: 800; line-height: 1; letter-spacing: -.06em; text-align: center; color: transparent; background: linear-gradient(180deg, var(--navy), var(--sky)); -webkit-background-clip: text; background-clip: text; }
.errcode + h1 { text-align: center; margin-top: 4px; }
.errcode + h1 + p { text-align: center; }

/* authenticator QR on the security page */
.qr-box { display: flex; justify-content: center; margin: 4px 0 12px; }
.qr { width: min(220px, 70vw); aspect-ratio: 1; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px -16px rgba(32, 50, 104, .45); }
.qr svg { display: block; width: 100%; height: 100%; border-radius: 8px; }

/* validation messages under a field */
.fe { display: flex; align-items: flex-start; gap: 6px; margin: 1px 2px 0; font-size: .8rem; font-weight: 600; line-height: 1.35; color: var(--bad); animation: feIn .28s var(--ease) both; }
.fe::before { content: ""; flex: none; width: 15px; height: 15px; margin-top: 1px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C73A27' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9.5'/><path d='M12 7.5v5.5M12 16.5h.01'/></svg>") center / contain no-repeat; }
input[aria-invalid="true"] { border-color: var(--bad); background: #FFF7F6; box-shadow: 0 0 0 3px rgba(199, 58, 39, .12); animation: feShake .32s ease-in-out; }
input[aria-invalid="true"]:focus { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(199, 58, 39, .22); }
@keyframes feIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes feShake { 20% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 80% { transform: translateX(-2px); } }
@media (prefers-reduced-motion: reduce) { .fe, input[aria-invalid="true"] { animation: none; } }
