/* Modern login screen shared by all "ระบบรับสมัครนักเรียนออนไลน์" login pages */

.auth-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
	font-family: inherit;
	background: linear-gradient(135deg, #4f6ef7 0%, #6f5ff0 45%, #8f5ff5 100%);
	background-attachment: fixed;
	position: relative;
	overflow-x: hidden;
}

.auth-page::before,
.auth-page::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.10);
	pointer-events: none;
}

.auth-page::before {
	width: 420px;
	height: 420px;
	top: -140px;
	left: -120px;
}

.auth-page::after {
	width: 320px;
	height: 320px;
	bottom: -120px;
	right: -100px;
}

.auth-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	background: rgba(255, 255, 255, 0.97);
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(31, 34, 90, 0.35);
	padding: 40px 32px 32px;
	animation: authCardIn 0.5s ease;
}

@keyframes authCardIn {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

.auth-logo {
	display: block;
	width: 76px;
	height: 76px;
	object-fit: cover;
	border-radius: 50%;
	margin: 0 auto 16px;
	border: 3px solid #fff;
	box-shadow: 0 6px 18px rgba(79, 110, 247, 0.35);
}

.auth-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #4f6ef7, #8f5ff5);
	color: #fff;
	font-size: 26px;
	box-shadow: 0 8px 20px rgba(79, 110, 247, 0.35);
}

.auth-title {
	text-align: center;
	font-size: 1.35rem;
	font-weight: 700;
	color: #232742;
	margin-bottom: 2px;
	line-height: 1.4;
}

.auth-subtitle {
	text-align: center;
	font-size: 0.92rem;
	color: #6b7086;
	margin-bottom: 24px;
	line-height: 1.5;
}

.auth-field {
	margin-bottom: 16px;
}

.auth-field label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: #4a4f6a;
	margin-bottom: 6px;
}

.auth-input-group {
	display: flex;
	align-items: stretch;
	border: 1.5px solid #e2e5f2;
	border-radius: 12px;
	background: #f8f9ff;
	transition: border-color .15s, box-shadow .15s;
	overflow: hidden;
}

.auth-input-group:focus-within {
	border-color: #6f5ff0;
	box-shadow: 0 0 0 3px rgba(111, 95, 240, 0.15);
	background: #fff;
}

.auth-input-group .auth-input-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	color: #8b90ab;
	font-size: 15px;
	flex-shrink: 0;
}

.auth-input-group input {
	flex: 1 1 auto;
	border: 0;
	background: transparent;
	outline: none;
	padding: 12px 14px 12px 0;
	font-size: 0.95rem;
	color: #232742;
	min-width: 0;
	font-family: inherit;
}

.auth-captcha-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.auth-captcha-img-wrap {
	position: relative;
	flex-shrink: 0;
	border-radius: 12px;
	overflow: hidden;
	border: 1.5px solid #e2e5f2;
	line-height: 0;
	background: #f8f9ff;
}

.auth-captcha-img-wrap img {
	display: block;
	height: 46px;
	width: auto;
}

.auth-captcha-refresh {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1.5px solid #e2e5f2;
	background: #f8f9ff;
	color: #4f6ef7;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 15px;
	transition: background .15s, transform .2s;
}

.auth-captcha-refresh:hover {
	background: #eef0ff;
}

.auth-captcha-refresh.is-spinning i {
	animation: authSpin 0.6s linear;
}

@keyframes authSpin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

.auth-captcha-row .auth-input-group {
	flex: 1 1 auto;
	min-width: 0;
}

.auth-submit {
	width: 100%;
	border: 0;
	border-radius: 12px;
	padding: 13px;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #4f6ef7, #8f5ff5);
	box-shadow: 0 10px 24px rgba(79, 110, 247, 0.35);
	cursor: pointer;
	transition: transform .15s, box-shadow .15s;
}

.auth-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(79, 110, 247, 0.45);
}

.auth-submit:active {
	transform: translateY(0);
}

.auth-footer {
	text-align: center;
	margin-top: 20px;
	font-size: 0.8rem;
	color: rgba(255,255,255,0.85);
}

.auth-footer a {
	color: #fff;
	text-decoration: underline;
}
