/* /signin and /signup (harmony-ops#697 day 3): form on the left, a family-at-home photo on the right; on phones the photo is a short banner above the form.
   Colours are the site teal; text and buttons meet WCAG AA on white (buttons use the darker teal). */
.ap { --ap-teal: #146c75; --ap-teal-hover: #0f5860; --ap-ink: #0f172a; --ap-muted: #475569; --ap-line: #cbd5e1;
	display: grid; grid-template-columns: 1fr; grid-template-areas: "photo" "panel"; background: #fff; color: var(--ap-ink); }
.ap-photo { grid-area: photo; height: 150px; overflow: hidden; background: #dcc9b8; }
.ap-photo picture, .ap-photo img { display: block; width: 100%; height: 100%; }
.ap-photo img { object-fit: cover; object-position: 50% 30%; }
.ap-panel { grid-area: panel; display: flex; justify-content: center; padding: 24px 16px 40px; }
.ap-box { width: 100%; max-width: 420px; }
.ap h1 { text-transform: none; letter-spacing: normal; font-size: 28px; line-height: 1.2; font-weight: 700; margin: 0 0 8px; color: var(--ap-ink); }
.ap-lead { font-size: 16px; line-height: 1.5; color: var(--ap-muted); margin: 0 0 20px; }
.ap-google { display: flex; justify-content: center; min-height: 44px; }
.ap-or { display: flex; align-items: center; gap: 12px; color: var(--ap-muted); font-size: 14px; margin: 18px 0; }
.ap-or::before, .ap-or::after { content: ""; flex: 1; border-top: 1px solid var(--ap-line); }
.ap-form label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; color: var(--ap-ink); }
.ap-form input[type=text], .ap-form input[type=password] { display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px;
	border: 1px solid #94a3b8; border-radius: 8px; font-size: 16px; color: var(--ap-ink); background: #fff; }
.ap-form input:focus-visible, .ap-btn:focus-visible, .ap a:focus-visible { outline: 3px solid var(--ap-teal); outline-offset: 2px; }
#ap-code { letter-spacing: .4em; font-size: 22px; text-align: center; }
.ap-help { font-size: 14px; color: var(--ap-muted); margin: 6px 0 0; }
.ap-btn { display: block; width: 100%; box-sizing: border-box; min-height: 48px; margin-top: 16px; padding: 12px 16px; border: 0; border-radius: 8px;
	background: var(--ap-teal); color: #fff !important; font-size: 17px; font-weight: 700; text-align: center; text-decoration: none !important; cursor: pointer; }
.ap-btn:hover { background: var(--ap-teal-hover); }
.ap-btn-ghost { background: #fff; color: var(--ap-teal) !important; border: 2px solid var(--ap-teal); }
.ap-btn-ghost:hover { background: #e6f6f7; }
.ap a { color: var(--ap-teal); text-decoration: underline; }
.ap-err { background: #fde8e8; color: #8a1c1c; padding: 12px; border-radius: 8px; margin: 0 0 16px; }
.ap-note { background: #f1f5f9; color: var(--ap-ink); padding: 10px 12px; border-radius: 8px; font-size: 14px; margin: 12px 0 0; }
.ap-switch { margin: 22px 0 0; font-size: 15px; }
.ap-agent { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid #e2e8f0; font-size: 15px; }
.ap-agent a { font-weight: 700; }
.ap-agent span { display: block; color: var(--ap-muted); font-size: 14px; margin-top: 2px; }
.ap-alt { margin: 18px 0 0; font-size: 15px; }
.ap-trust { margin: 24px 0 0; font-size: 13px; line-height: 1.5; color: var(--ap-muted); }

/* this stylesheet loads only on the sign-in pages: the feedback button sits in the page flow there, never over the form (as on other form pages) */
#ep-fb-btn { position: static; display: flex; margin: 16px auto 24px; box-shadow: none; }

@media (min-width: 900px) {
	.ap { grid-template-columns: minmax(420px, 1fr) 1fr; grid-template-areas: "panel photo"; min-height: calc(100vh - 80px); }
	.ap-photo { height: auto; min-height: 560px; }
	.ap-photo img { object-position: 55% 40%; }
	.ap-panel { align-items: center; padding: 48px 32px; }
}
/* the tips e-mail box on /signup (harmony-ops#1096): unticked by default, 44px tap row */
.ap-form label.ap-tips { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; margin: 16px 0; font-weight: 400; cursor: pointer; }
.ap-form .ap-tips input { flex: 0 0 24px; width: 24px; height: 24px; margin: 0; }
