.title {
	margin: 0 0 1.5rem;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
}

.form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.label {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--text-primary);
	letter-spacing: 0;
	text-transform: none;
}

/* Wrapper for inputs that have a trailing icon (eye toggle on
   password fields). The `position: relative` lets the icon be
   absolutely positioned inside the input area. */
.inputWrap {
	position: relative;
}

.input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border-radius: 8px;
	border: 1px solid transparent;
	background-color: var(--form-surface-background);
	color: var(--text-primary);
	font-size: 1rem;
	font-family: inherit;
	outline: none;
	box-shadow: none;
	transition: border-color 0.15s, background-color 0.15s;
	box-sizing: border-box;
}

.inputWithTrailing {
	padding-right: 44px;
}

.input:focus,
.input:focus-visible {
	border-color: var(--brand-primary);
	outline: none;
}

.input::placeholder {
	color: var(--text-tertiary-muted, var(--text-tertiary));
}

/* Trailing icon button (e.g. password visibility toggle). Sits
   inside `.inputWrap` and overlaps the right edge of `.input`. */
.trailingIconButton {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--text-primary-muted, #a0a3a8);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
	-webkit-tap-highlight-color: transparent;
}

.trailingIconButton:hover {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

.error {
	color: hsl(0, calc(80% * var(--saturation-factor)), 70%);
	font-size: 0.875rem;
	background-color: hsl(0, calc(60% * var(--saturation-factor)), 22%);
	padding: 10px 14px;
	border-radius: 8px;
}

.submitButton {
	width: 100%;
	height: 48px;
	padding: 0 1rem;
	border-radius: 10px;
	border: none;
	background-color: var(--brand-primary);
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	font-family: inherit;
	cursor: pointer;
	transition: filter 120ms ease;
	-webkit-tap-highlight-color: transparent;
}

.submitButton:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.submitButton:hover:not(:disabled),
.submitButton:active:not(:disabled) {
	filter: brightness(0.92);
}

.divider {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0.25rem 0;
}

.dividerLine {
	flex: 1;
	border: none;
	border-top: 1px solid var(--background-header-secondary);
}

.dividerText {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--text-primary-muted);
	letter-spacing: 0.04em;
}

.footer {
	margin-top: 0.5rem;
	font-size: 0.9375rem;
}

.footerText {
	color: var(--text-primary-muted);
}

.footerLink {
	color: var(--brand-primary-light);
	text-decoration: none;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
	font-weight: 700;
	font-size: inherit;
}

.footerLink:hover {
	text-decoration: underline;
}
