﻿.ofsa-login-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.ofsa-login-modal[hidden] {
	display: none;
}

.ofsa-login-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(35, 23, 16, 0.62);
}

.ofsa-login-modal__dialog {
	position: relative;
	overflow: hidden;
	background-color: var(--ofsa-white);
	background-image: var(--ofsa-paper-noise);
	border: 1px solid var(--ofsa-line-strong);
	border-radius: var(--ofsa-radius);
	var(--ofsa-shadow);
	padding: 44px 40px 36px;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	font-family: var(--ofsa-font-body);
	color: var(--ofsa-ink);
}


.ofsa-login-modal__close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--ofsa-line-strong);
	border-radius: 50%;
	background: var(--ofsa-cream-2);
	color: var(--ofsa-ink-muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ofsa-login-modal__close:hover {
	background: var(--ofsa-accent);
	border-color: var(--ofsa-red-deep);
	color: var(--ofsa-cream);
}

.ofsa-login-modal__close:focus-visible {
	outline: none;
	box-shadow: var(--ofsa-focus);
}

.ofsa-login-modal__title {
	margin: 0 0 24px;
	font-family: var(--ofsa-font-display);
	font-size: 29px;
	font-weight: 600;
	color: var(--ofsa-ink);
	text-align: center;
}

.ofsa-login-modal__label {
	display: block;
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
	color: var(--ofsa-ink);
}

.ofsa-login-modal__input {
	display: block;
	width: 100%;
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1.5px solid var(--ofsa-line-strong);
	border-radius: 6px;
	font-family: inherit;
	font-size: 16px;
	color: var(--ofsa-ink);
	background: var(--ofsa-cream-2);
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ofsa-login-modal__input:focus {
	outline: none;
	border-color: var(--ofsa-gold);
	background: var(--ofsa-white);
	box-shadow: 0 0 0 4px rgba(198, 154, 51, 0.28);
}

.ofsa-login-modal__error {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 6px;
	background: var(--ofsa-tint-red);
	border: 1px solid rgba(196, 41, 31, 0.45);
	color: var(--ofsa-red-deep);
	font-size: 15px;
}

.ofsa-login-modal__submit {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ofsa-login-modal__submit.is-loading {
	opacity: 0.7;
	cursor: wait;
}

.ofsa-login-modal__register {
	width: 100%;
	margin-top: 16px;
	background: transparent;
	border: 1px solid var(--ofsa-olive-soft);
	color: var(--ofsa-green-deep);
	box-shadow: none;
}

.ofsa-login-modal__register:hover {
	background: var(--ofsa-olive);
	border-color: var(--ofsa-olive);
	color: var(--ofsa-cream);
	box-shadow: var(--ofsa-focus);
}

.ofsa-login-modal__links {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
}

.ofsa-login-modal__links a {
	font-size: 15px;
	color: var(--ofsa-olive);
	font-weight: 600;
	text-decoration: none;
}

.ofsa-login-modal__links a:hover {
	color: var(--ofsa-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.ofsa-modal-open {
	overflow: hidden;
}
