/**
 * ATEE login modal — sitewide guest overlay.
 * Buttons use shared .atee-btn rules from global.css.
 */

.atee-login-card {
	width: 100%;
	max-width: 720px;
	background: var(--atee-white, #ffffff);
	border-radius: var(--atee-radius-md, 24px);
	padding: 32px;
	font-family: var(--atee-font-family);
	color: var(--atee-text, #0b1625);
	line-height: 1.5;
}

.atee-login-card--modal {
	max-width: none;
	padding: 0;
}

.atee-login-card__label {
	margin: 0 0 24px;
	font-size: 14px;
	font-weight: 700;
	line-height: 24px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--atee-color-primary-deep, #133595);
}

.atee-login-card__intro {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}

.atee-login-card__title {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 28px;
	letter-spacing: 0.5px;
	color: var(--atee-color-primary-deep, #132665);
}

.atee-login-card__subtitle {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0.5px;
	color: var(--atee-text-muted, #474748);
}

.atee-login-card__form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.atee-login-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	width: 100%;
}

.atee-login-modal .atee-login-card__forgot {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	white-space: nowrap;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 0.5px;
	color: var(--atee-color-primary, #0a45eb);
	text-decoration: none;
	padding: 0;
	border: none;
	background: transparent;
	font-family: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.atee-login-modal .atee-login-card__forgot:hover,
.atee-login-modal .atee-login-card__forgot:focus-visible {
	color: var(--atee-color-primary-hover, #1039bd);
	text-decoration: none;
}

.atee-login-card__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 8px;
}

.atee-login-card__actions .atee-btn {
	border-radius: 4px;
	padding: 12px 16px;
	font-size: 16px;
	line-height: 24px;
}

.atee-login-card__actions .atee-btn--primary {
	font-size: 18px;
	background: #1039bd;
	border-color: #1039bd;
}

.atee-login-card__actions .atee-btn--ghost {
	background: #fff;
	border-color: #e5e5e6;
	color: #525253;
}

.atee-login-card__divider {
	height: 1px;
	background: #e5e5e6;
	margin: 24px 0;
}

.atee-login-card__signup {
	margin: 0;
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 0.5px;
	color: #19191a;
}

.atee-login-card__signup a {
	color: var(--atee-color-primary, #0a45eb);
	text-decoration: none;
}

.atee-login-card__signup a:hover {
	color: var(--atee-color-primary-hover, #1039bd);
}

.atee-login-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px 160px;
}

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

.atee-login-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 19, 53, 0.9);
}

.atee-login-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 720px;
	background: #fff;
	border-radius: 24px;
	padding: 32px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}

.atee-login-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: #525253;
	cursor: pointer;
	border-radius: 50%;
}

.atee-login-modal__close:hover {
	background: #f3f4f6;
}

body.atee-login-locked {
	overflow: hidden;
}

.atee-notice {
	padding: 0.875rem 1rem;
	border-radius: var(--atee-radius, 8px);
	margin-bottom: 1.25rem;
	font-size: 0.875rem;
}

.atee-notice--error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.atee-notice--success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.atee-login-card__back {
	margin: 0;
	text-align: center;
}

.atee-login-card__back-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	background: transparent;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 0.5px;
	color: var(--atee-color-primary, #0a45eb);
	cursor: pointer;
	text-decoration: none;
}

.atee-login-card__back-link:hover {
	color: var(--atee-color-primary-hover, #1039bd);
}

.atee-auth-view[hidden] {
	display: none;
}

.atee-login-card .atee-field {
	margin-bottom: 0;
}

.atee-login-card .atee-field label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	letter-spacing: 0.5px;
	color: #a2a2a4;
	margin-bottom: 4px;
}

.atee-login-card .atee-field input[name="log"],
.atee-login-card .atee-field input[type="email"],
.atee-login-card .atee-login-card__password-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 24px;
	border: 1.5px solid #e5e5e6;
	border-radius: 8px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: #262627;
	background: #fff;
	box-shadow: none;
}

.atee-login-card__pwd {
	position: relative;
}

.atee-login-card__password-input {
	padding-right: 48px;
}

.atee-login-card__toggle-pw {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	background: transparent;
	color: #525253;
	cursor: pointer;
	border-radius: 50%;
}

.atee-login-card__toggle-pw:hover,
.atee-login-card__toggle-pw:focus-visible {
	background: #f3f4f6;
	color: #262627;
	outline: none;
}

.atee-login-card__toggle-pw-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.atee-login-card__toggle-pw-icon[hidden] {
	display: none;
}

.atee-login-card .atee-field input[name="log"]:focus,
.atee-login-card .atee-field input[type="email"]:focus,
.atee-login-card .atee-login-card__password-input:focus {
	border-color: #e5e5e6;
	box-shadow: 0 0 0 3px rgba(10, 69, 235, 0.12);
	outline: none;
}

.atee-login-card__meta .atee-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	margin: 0;
	min-width: 0;
	flex: 1 1 auto;
	cursor: pointer;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0.5px;
	color: #262627;
}

.atee-login-card__meta .atee-check input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	margin: 0;
	flex-shrink: 0;
	border: 1px solid #a2a2a4;
	border-radius: 4px;
	background: #fff;
	accent-color: unset;
	cursor: pointer;
	position: relative;
}

.atee-login-card__meta .atee-check input[type="checkbox"]:checked {
	background: #0a45eb;
	border-color: #0a45eb;
}

.atee-login-card__meta .atee-check input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.atee-login-card__meta .atee-check span {
	line-height: 24px;
}

@media (max-width: 768px) {
	.atee-login-modal {
		padding: 24px;
	}
}
