/* Freelance Hub: the sign-in page. Builds on public.css and the --fh-* palette. */

body.fhl { min-height: 100vh; min-height: 100dvh; }

.fhl-shell {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	min-height: 100vh; min-height: 100dvh;
}

/* ---- Left: brand and welcome ---- */
.fhl-intro {
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
	padding: clamp(28px, 4vw, 56px) clamp(24px, 5vw, 72px);
}
.fhl-intro::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	width: 720px; height: 720px; right: -260px; bottom: -320px; border-radius: 50%;
	background: radial-gradient(closest-side, var(--fh-accent-bg), transparent 72%);
}
.fhl-intro::after {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	width: 420px; height: 420px; right: 8%; bottom: -150px; border-radius: 50%;
	border: 1px solid var(--fh-line);
}

.fhl-brand { display: flex; align-items: center; gap: 12px; }
.fhl-mark {
	width: 40px; height: 40px; border-radius: 200px; flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--fh-accent); color: var(--fh-on-accent); font-weight: 700; font-size: 15px; letter-spacing: -0.02em;
}
.fhl-brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.fhl-brand__name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.fhl-brand__by { font-size: 13px; color: var(--fh-dim); }
.fhl-logo { display: block; max-height: 48px; max-width: 220px; width: auto; height: auto; }

.fhl-hello { display: flex; flex-direction: column; gap: 24px; max-width: 620px; }
.fhl-h1 { font-size: clamp(44px, 6.2vw, 96px); }
.fhl-lead { margin: 0; max-width: 460px; font-size: 18px; line-height: 1.7; color: var(--fh-muted); }

.fhl-note {
	margin: 0; display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
	max-width: 460px; padding: 12px 18px; border-radius: 200px;
	background: var(--fh-surface); color: var(--fh-muted); font-size: 14px; line-height: 1.45;
}
.fhl-note .fhp-pip { flex: none; }

/* ---- Right: the form ---- */
.fhl-panel {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
	padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 56px);
	background: var(--fh-surface); border-left: 1px solid var(--fh-line);
}
.fhl-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 28px; }
.fhl-card__head { display: flex; flex-direction: column; gap: 4px; }
.fhl-h2 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 500; letter-spacing: -0.03em; }
.fhl-sub { margin: 0; color: var(--fh-dim); font-size: 15px; }

.fhl-form { display: flex; flex-direction: column; gap: 20px; }
.fhl-field { max-width: none; }
.fhl-field input { width: 100%; min-height: 54px; }
.fhl-field input[aria-invalid="true"] { border-color: var(--fh-bad); box-shadow: 0 0 0 1px var(--fh-bad); }

.fhl-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fhp .fhl-forgot { font-weight: 500; font-size: 14px; }

.fhl-pass { position: relative; display: block; }
.fhl-pass input { padding-right: 56px; }
.fhl-reveal {
	position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
	width: 44px; height: 44px; border: 0; border-radius: 200px; background: transparent;
	color: var(--fh-dim); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.fhl-reveal:hover { color: var(--fh-text); background: var(--fh-soft); }
.fhl-reveal[aria-pressed="false"] .fhl-reveal__slash { display: none; }
.fhl-caps { min-height: 0; font-size: 13px; font-weight: 500; color: var(--fh-accent); }
.fhl-caps:empty { display: none; }

.fhl-check { font-size: 15px; align-items: center; }
.fhl-check input { margin: 0; }

.fhl-form .fhl-submit { width: 100%; align-self: stretch; margin-top: 4px; }
.fhl-submit:disabled { opacity: .75; cursor: progress; }

.fhl-card .fhp-alert a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.fhp-alert--info { background: var(--fh-sent-bg); color: var(--fh-sent); }

.fhl-switch { margin: -8px 0 0; font-size: 15px; text-align: center; }
.fhp .fhl-switch a { font-weight: 500; }
.fhl-foot { margin: 0; font-size: 13px; color: var(--fh-dim); text-align: center; }

/* ---- Smaller screens: stack, with the form close to the top ---- */
@media (max-width: 900px) {
	.fhl-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
	.fhl-intro { gap: 28px; padding-bottom: 36px; }
	.fhl-hello { gap: 14px; }
	.fhl-h1 { font-size: clamp(40px, 10vw, 64px); }
	.fhl-lead { font-size: 16px; }
	.fhl-note { display: none; }
	.fhl-panel { justify-content: flex-start; border-left: 0; border-top: 1px solid var(--fh-line); border-radius: 28px 28px 0 0; padding-top: 32px; }
	.fhl-intro::before, .fhl-intro::after { display: none; }
}
@media (max-width: 420px) {
	.fhl-h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: no-preference) {
	.fhl-card { animation: fhl-in .45s cubic-bezier(.2, .7, .2, 1) both; }
	@keyframes fhl-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
