/*
 * Auth Modal — 登录/注册/找回密码弹窗样式
 * @package Pose_Guide
 * @since 2.1.0
 */

.auth-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .7);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: opacity .25s ease;
}
.auth-overlay[hidden] {
	display: none;
}
.auth-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--bg-card);
	color: var(--text-primary);
	border-radius: 16px;
	padding: 32px 28px;
	box-shadow: 0 20px 60px rgba(0,0,0,.5);
	margin: 16px;
}
.auth-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	opacity: .6;
	padding: 4px;
}
.auth-modal__close:hover {
	opacity: 1;
}
.auth-panel__title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 20px;
	color: var(--accent);
}
.auth-form__group {
	margin-bottom: 16px;
}
.auth-form__group label {
	display: block;
	font-size: 13px;
	margin-bottom: 6px;
	opacity: .8;
}
.auth-form__group input[type="text"],
.auth-form__group input[type="password"],
.auth-form__group input[type="email"] {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid var(--border-light);
	background: var(--bg-elevated);
	color: var(--text-primary);
	font-size: 14px;
	outline: none;
	transition: border-color .2s;
	box-sizing: border-box;
}
.auth-form__group input:focus {
	border-color: var(--accent);
}
.auth-form__captcha-row {
	display: flex;
	align-items: center;
	gap: 10px;
}
.auth-form__captcha-row input {
	flex: 1;
}
.auth-form__captcha-img {
	height: 40px;
	border-radius: 6px;
	cursor: pointer;
	background: var(--bg-elevated);
}
.auth-form__captcha-refresh {
	font-size: 12px;
	text-decoration: none;
	opacity: .6;
}
.auth-form__captcha-refresh:hover {
	opacity: 1;
}
.auth-form__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}
.auth-form__checkbox {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	cursor: pointer;
}
.auth-form__error {
	color: var(--error);
	font-size: 13px;
	margin-bottom: 12px;
}
.auth-form__success {
	color: var(--success);
	font-size: 13px;
	margin-bottom: 12px;
}
.auth-form__submit {
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 10px;
	background: var(--accent);
	color: var(--text-on-accent);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity .2s;
}
.auth-form__submit:hover {
	opacity: .9;
}
.auth-form__submit:disabled {
	opacity: .5;
	cursor: not-allowed;
}
.auth-form__hint {
	font-size: 12px;
	opacity: .5;
	margin-top: 4px;
	display: block;
}
.auth-form__desc {
	font-size: 14px;
	opacity: .7;
	margin: 0 0 16px;
}
.auth-panel__switch {
	font-size: 13px;
	text-align: center;
	margin-top: 16px;
	opacity: .6;
}
.auth-panel__switch a {
	color: var(--accent);
	text-decoration: none;
}
.auth-panel__switch a:hover {
	text-decoration: underline;
}
.auth-panel__switch-sep {
	margin: 0 8px;
}
.auth-panel[hidden] {
	display: none;
}
