/* Sign-in page styles (on top of theme.css and icons.css) */

body { min-height: 100vh; display: flex; flex-direction: column; }
/* The logo repeated across the background, very faint and slightly tilted (the form card stays solid on top) */
body::before { content: ''; position: fixed; inset: -35%; z-index: 0; pointer-events: none; opacity: .07; transform: rotate(-12deg);
  background: url('/pattern.png') 0 0 / 480px auto repeat; }
header, main { position: relative; z-index: 1; }
header { position: relative; }
.brand img { height: 52px; }
@media (max-width: 480px) { body::before { background-size: 320px auto; opacity: .05; } }

main { flex: 1; display: grid; place-items: center; padding: 32px 16px 40px; }
.card { width: 100%; max-width: 470px; padding: 32px 30px 26px; border-radius: 28px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
.card h2 { font-size: 28px; margin: 0 0 6px; letter-spacing: -.03em; }
.sub { color: var(--ink-soft); margin: 0 0 18px; font-size: 14.5px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 20px; padding: 4px; background: var(--bg); border-radius: 16px; }
.tabs button { padding: 11px; background: transparent; border: 0; border-radius: 12px; font-weight: 700; font-size: 14.5px; cursor: pointer; color: var(--ink-soft); transition: all .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--brand-700); box-shadow: 0 2px 8px rgba(11, 37, 69, .12); }

.choice { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line-2); border-radius: 20px; padding: 18px; margin-top: 14px; cursor: pointer; transition: all .18s ease; }
.choice:hover, .choice:focus-visible { border-color: var(--brand); box-shadow: 0 14px 28px -16px rgba(15, 111, 222, .6); transform: translateY(-2px); }
.cico { flex: none; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #2186F5, #0B5CC0); box-shadow: 0 12px 22px -12px rgba(15, 111, 222, .9); }
.cico svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctext { flex: 1; min-width: 0; }
.choice strong { display: block; font: 800 17px/1.25 var(--display); letter-spacing: -.02em; }
.choice small { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
.choice .arrow { order: 3; margin-left: auto; float: none; font-size: 26px; line-height: 1; color: var(--brand); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-soft); font-weight: 700; font-size: 13.5px; cursor: pointer; margin-bottom: 4px; }
.linkbtn:hover { color: var(--brand-700); }

.pw { position: relative; }
.pw input { padding-right: 70px; }
.show { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 12px; background: var(--bg); border: 0; border-radius: 9px; color: var(--ink-soft); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.show:hover { color: var(--brand-700); }
.photo { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.photo input[type=file] { flex: 1; min-width: 180px; }
.photo img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.checks label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px; border: 1.5px solid var(--line-2); border-radius: 12px; font-weight: 600; font-size: 13.5px; color: var(--ink); cursor: pointer; background: #fff; }
.checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.done { background: var(--green-50); border: 1px solid #BFE6D3; border-radius: 18px; padding: 18px 20px; }
.done h3 { font: 800 20px/1.2 var(--display); margin: 0 0 6px; color: var(--green); }
@media (max-width: 420px) { .checks { grid-template-columns: 1fr; } .card { padding: 26px 20px 22px; border-radius: 24px; } }
.agree { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.agree input { margin-top: 3px; flex: none; }
.legal-links { text-align: center; margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.legal-links a, .agree a { color: var(--brand-600); }
.hint { font-size: 12.5px; color: var(--ink-soft); margin: 6px 0 0; }
.card .btn { width: 100%; margin-top: 20px; padding: 14px 18px; font-size: 15.5px; }
#submit, #verifyBtn { background: linear-gradient(135deg, #2186F5 0%, #0B5CC0 100%); box-shadow: 0 1px 2px rgba(11, 92, 192, .3), 0 12px 24px -10px rgba(15, 111, 222, .8); }
#submit:hover, #verifyBtn:hover { background: linear-gradient(135deg, #3A97FA 0%, #0F6FDE 100%); }
.btn:disabled { opacity: .65; cursor: wait; }

/* email verification code screen */
.mail-ico { width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, #2186F5, #0B5CC0); box-shadow: 0 14px 26px -12px rgba(15, 111, 222, .9); }
.mail-ico svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.verify-msg { margin: 0 0 6px; text-align: center; color: var(--ink-soft); font-size: 14.5px; overflow-wrap: anywhere; }
.code-input { text-align: center; font-size: 32px; font-weight: 800; letter-spacing: .4em; padding-left: calc(14px + .4em); min-height: 62px; }
.resend-row { text-align: center; margin: 14px 0 2px; }
#verifyForm .linkbtn { display: block; margin: 8px auto 0; }
.linkbtn:disabled { opacity: .45; cursor: not-allowed; }
#resendNote { color: var(--muted); font-size: 12.5px; margin-left: 6px; }

/* easier to tap on a phone */
.linkbtn { min-height: 36px; padding-top: 8px; padding-bottom: 8px; }
.legal-links a, .agree a { display: inline-block; padding: 8px 3px; }
