body { min-width: 280px; }

.auth-shell {
	display: grid;
	place-items: center;
	min-height: 100vh;
	min-height: 100dvh;
	padding: clamp(16px, 4vw, 48px);
}

.auth-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	width: min(100%, 1120px);
	min-height: min(660px, calc(100dvh - 96px));
	border: 1px solid #e3e5e7;
	border-radius: 30px;
	background: #fff;
	box-shadow: 0 28px 70px rgba(21, 25, 34, .09);
	overflow: hidden;
}

.auth-form-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	padding: clamp(34px, 5vw, 70px);
}

.auth-logo { display: block; width: 100px; max-width: 100%; height: auto; margin-bottom: clamp(22px, 3vh, 30px); }
.auth-heading { margin-bottom: 30px; }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #8a6900; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.auth-eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: #fdcc0d; box-shadow: 0 0 0 5px rgba(253, 204, 13, .16); }
.auth-heading h1 { margin: 14px 0 10px; color: #181a1d; font-size: clamp(29px, 3.2vw, 40px); font-weight: 650; line-height: 1.14; letter-spacing: -.045em; }
.auth-heading p { max-width: 355px; margin: 0; color: #667085; font-size: 14px; line-height: 1.6; }

#formSubmit { width: 100%; max-width: 380px; }
#formSubmit .inputBox { margin-bottom: 18px; gap: 8px; }
#formSubmit .inputBox label { color: #313641; font-size: 12px; font-weight: 600; }
#formSubmit .inputBox .inputItem {
	display: flex;
	align-items: center;
	height: 52px;
	padding: 0 15px;
	border: 1px solid #dfe3e8;
	border-radius: 13px;
	background: #f8f9fb;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
#formSubmit .inputBox .inputItem:focus-within { border-color: #d2a500; background: #fff; box-shadow: 0 0 0 4px rgba(253, 204, 13, .16); }
#formSubmit .inputBox input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; color: #20242a; font: inherit; font-size: 14px; }
#formSubmit .inputBox input::placeholder { color: #98a0ac; }
#formSubmit .inputBox input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #f8f9fb inset; -webkit-text-fill-color: #20242a; }

#formSubmit .password-field { gap: 8px; }
#formSubmit .password-toggle { flex: none; width: auto; height: auto; min-height: 32px; padding: 0 4px; border: 0; border-radius: 4px; background: transparent; color: #5c6571; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
#formSubmit .password-toggle:hover { color: #17191d; }
#formSubmit .password-toggle:focus-visible { outline: 2px solid #b18800; outline-offset: 2px; }

.login-error { max-width: 380px; margin: 2px 0 16px; padding: 11px 13px; border: 1px solid #efcbc7; border-radius: 10px; background: #fff2f1; color: #a1332b; font-size: 12px; line-height: 1.45; }
.login-error[hidden] { display: none; }

#formSubmit .login-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	margin-top: 24px;
	padding: 0 18px;
	border: 0;
	border-radius: 13px;
	background: #fdcc0d;
	color: #1b1b1b;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease;
}
#formSubmit .login-submit:hover { background: #eebf00; transform: translateY(-1px); }
#formSubmit .login-submit:focus-visible { outline: 3px solid #a17d00; outline-offset: 3px; }
#formSubmit .login-submit:disabled { cursor: wait; transform: none; }
#formSubmit .login-submit.loading svg { visibility: hidden; }
.auth-note { margin: 20px 0 0; color: #8c939e; font-size: 11px; }

.auth-visual {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-width: 0;
	margin: 12px;
	padding: clamp(28px, 4vw, 48px);
	border-radius: 23px;
	background: linear-gradient(180deg, rgba(12, 15, 19, .38), rgba(12, 15, 19, .18) 30%, rgba(12, 15, 19, .92)), url('/assets/img/wallpaper.png') 19% center / cover;
	color: #fff;
	overflow: hidden;
}
.auth-visual::after { position: absolute; right: -105px; bottom: -150px; width: 350px; height: 350px; border: 1px solid rgba(253, 204, 13, .38); border-radius: 50%; content: ''; pointer-events: none; }
.auth-visual__badge,
.auth-visual__copy { position: relative; z-index: 1; }
.auth-visual__badge { display: inline-flex; align-items: center; align-self: flex-start; gap: 9px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .32); border-radius: 999px; background: rgba(20, 22, 26, .38); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; backdrop-filter: blur(10px); }
.auth-visual__badge span { width: 7px; height: 7px; border-radius: 50%; background: #fdcc0d; }
.auth-visual__copy > span { color: #ffd33a; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.auth-visual__copy h2 { max-width: 420px; margin: 12px 0; font-size: clamp(30px, 3vw, 42px); font-weight: 600; line-height: 1.13; letter-spacing: -.045em; }
.auth-visual__copy p { max-width: 410px; margin: 0; color: #e0e1e2; font-size: 13px; line-height: 1.65; }

@media (max-width: 900px) {
	.auth-card { grid-template-columns: 1fr; width: min(100%, 550px); min-height: 0; }
	.auth-form-panel { padding: clamp(30px, 6vw, 54px); }
	.auth-visual { display: none; }
	#formSubmit { max-width: none; }
}

@media (max-width: 575px) {
	.auth-shell { min-height: 100dvh; padding: 16px; }
	.auth-card { border-radius: 22px; }
	.auth-form-panel { padding: 30px 23px 34px; }
	.auth-logo { width: 88px; margin-bottom: 20px; }
	.auth-heading { margin-bottom: 25px; }
	.auth-heading h1 { font-size: 29px; }
	.auth-heading p { font-size: 13px; }
	#formSubmit .inputBox input { font-size: 16px; }
}

@media (max-width: 340px) {
	.auth-shell { padding: 10px; }
	.auth-form-panel { padding: 26px 18px 30px; }
}

@media (prefers-reduced-motion: reduce) {
	#formSubmit .login-submit,
	#formSubmit .inputBox .inputItem { transition: none; }
}
