html,
body.redesign-login {
	height: 100vh;
	overflow: hidden;
}

body.redesign-login {
	margin: 0;
	color: #11203c;
	font-family: "Noto Sans Thai", "Prompt", "Segoe UI", Tahoma, sans-serif;
	background: linear-gradient(90deg, rgb(6 51 141 / 46%) 43%, rgba(2, 39, 124, 0.95) 100%), url(../images/login_bg.jpg) center bottom / cover no-repeat fixed;
}

.redesign-login * {
	box-sizing: border-box;
}

.redesign-shell {
	position: relative;
	height: 100vh;
	overflow: hidden;
	padding: clamp(14px, 1.6vh, 28px) clamp(18px, 1.8vw, 32px) 0;
}

.redesign-shell:before {
	content: '';
	position: absolute;
	top: -14%;
	bottom: -8%;
	left: 36%;
	width: 12px;
	background: linear-gradient(180deg, #ff6a1a, #ffb03a);
	border-radius: 999px;
	transform: rotate(8deg);
	box-shadow: 0 0 28px rgba(255, 122, 37, 0.28);
}

.redesign-shell:after {
    content: '';
    display: block;
    position: absolute;
    top: -14%;
    bottom: -8%;
    left: calc(36% + 8px);
    width: 50%;
    background: #fff;
    transform: rotate(8deg) translateX(-100%);
    box-shadow: 0 0 28px rgba(255, 122, 37, 0.28);
}

.redesign-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, 500px) minmax(500px, 1fr);
    gap: clamp(40px, 5vw, 110px);
    align-items: flex-start;
    height: calc(100vh - 78px);
    margin: 20px auto 0 0;
    padding-bottom: 88px;
}

.brand-panel {
	padding: 2px 8px 0 16px;
}

.brand-logo {
	width: clamp(170px, 13vw, 240px);
	max-width: 100%;
	margin-bottom: clamp(14px, 1.8vh, 24px);
}

.brand-logo-mobile-wrap {
	display: none;
	position: relative;
	z-index: 1;
}

.brand-logo-mobile {
	width: clamp(170px, 32vw, 240px);
	max-width: 100%;
}

.brand-title {
	margin: 0;
	font-size: clamp(36px, 3.4vw, 52px);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #132344;
}

.brand-title .accent {
	display: block;
	color: #ff641d;
}

.brand-copy {
	max-width: 480px;
	margin: clamp(10px, 1.2vh, 18px) 0 clamp(18px, 2vh, 28px);
	font-size: clamp(17px, 1.6vw, 25px);
	line-height: 1.5;
	color: rgba(17, 32, 60, 0.8);
}

.feature-list {
	display: grid;
	gap: clamp(12px, 1.2vh, 20px);
	max-width: 500px;
}

.feature-item {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 14px;
	align-items: start;
}

.feature-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: linear-gradient(180deg, #ff8b2e, #ff5f14);
	box-shadow: 0 18px 32px rgba(255, 111, 32, 0.28);
	color: #fff;
}

.feature-icon svg {
	width: 22px;
	height: 22px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.feature-title {
	margin: 2px 0 4px;
	font-size: clamp(18px, 1.35vw, 25px);
	font-weight: 800;
	line-height: 1.25;
	color: #14284c;
}

.feature-text {
	margin: 0;
	font-size: clamp(13px, 1vw, 18px);
	line-height: 1.45;
	color: rgba(17, 32, 60, 0.76);
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-top: clamp(14px, 1.8vh, 24px);
	padding: 14px 18px;
	border-radius: 20px;
	background: rgba(8, 34, 86, 0.92);
	color: #fff;
	box-shadow: 0 24px 40px rgba(6, 20, 51, 0.24);
}

.hero-badge svg {
	width: 28px;
	height: 28px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hero-badge strong,
.hero-badge span {
	display: block;
}

.hero-badge strong {
	font-size: clamp(17px, 1.2vw, 20px);
	font-weight: 800;
}

.hero-badge span {
	margin-top: 4px;
	font-size: clamp(13px, 0.9vw, 15px);
	color: rgba(255, 255, 255, 0.82);
}

.auth-panel {
	padding-top: 0;
}

.auth-nav {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	margin: 0 auto 50px;
	max-width: 920px;
	color: rgba(255, 255, 255, 0.95);
}

.auth-nav-item {
    background: rgb(255 255 255 / 25%);
    text-align: center;
    font-size: clamp(12px, 0.85vw, 14px);
    line-height: 1.35;
    font-size: 16px;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
}

.auth-nav-item svg {
	width: 50px;
	height: 50px;
	margin: 0 auto 5px;
	display: block;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

#container {
	width: auto;
	max-width: none;
	padding: 0;
	margin: 0;
	text-align: left;
}

#form-wrapper {
	max-width: 640px;
	margin: 0 auto;
}

.auth-card {
	background: rgba(255, 255, 255, 0.96);
	border-radius: 30px;
	padding: clamp(20px, 2.1vh, 34px) clamp(18px, 1.8vw, 34px) clamp(18px, 1.8vh, 26px);
	box-shadow: 0 40px 70px rgba(3, 25, 78, 0.22);
	backdrop-filter: blur(10px);
}

.auth-mobile-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 22px;
	padding: 6px;
	border-radius: 18px;
	background: #eef3fb;
}

.auth-mobile-tab {
	height: 46px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: #5b6880;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-mobile-tab.is-active {
	background: linear-gradient(90deg, #ff5f18, #ffaf2f);
	color: #fff;
	box-shadow: 0 12px 24px rgba(255, 109, 28, 0.22);
}

.auth-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}

.auth-column {
	display: none;
	padding: 0;
}

.auth-column.is-active {
	display: block;
}

.auth-column + .auth-column {
	border-left: 0;
	padding-left: 0;
	margin-left: 0;
}

.auth-heading {
	margin: 0 0 8px;
	font-size: clamp(24px, 1.8vw, 32px);
	line-height: 1.2;
	font-weight: 800;
	text-align: center;
	color: #152649;
}

.auth-subheading {
	margin: 0 0 18px;
	text-align: center;
	font-size: clamp(14px, 1vw, 18px);
	color: rgba(21, 38, 73, 0.58);
}

.modern-form {
	margin: 0;
}

.field-stack {
	display: grid;
	gap: 12px;
}

.field {
	position: relative;
}

.field svg {
	position: absolute;
	left: 18px;
	top: 50%;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	stroke: #8e99ab;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.field input {
	width: 100%;
	height: 48px;
	padding: 0 48px 0 52px;
	border: 1px solid rgba(19, 35, 68, 0.14);
	border-radius: 14px;
	background: #fff;
	font-size: 16px;
	color: #132344;
	box-shadow: inset 0 1px 2px rgba(15, 29, 59, 0.04);
}

.field input:focus {
	outline: none;
	border-color: rgba(255, 98, 26, 0.7);
	box-shadow: 0 0 0 4px rgba(255, 98, 26, 0.12);
}

.password-toggle {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: #8d98aa;
	cursor: pointer;
	padding: 4px;
}

.password-toggle svg {
	position: static;
	transform: none;
	width: 20px;
	height: 20px;
	stroke: currentColor;
}

.form-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 12px 0 16px;
	font-size: 14px;
}

.checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: rgba(19, 35, 68, 0.76);
	cursor: pointer;
}

.checkbox-label input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #ff6b1a;
}

.text-link {
	color: #2775ff;
	text-decoration: none;
	font-weight: 600;
}

.text-link:hover {
	text-decoration: underline;
}

.primary-button {
	width: 100%;
	height: 50px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(90deg, #ff5f18, #ffaf2f);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 22px 30px rgba(255, 109, 28, 0.26);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 26px 34px rgba(255, 109, 28, 0.32);
}

.primary-button:disabled {
	cursor: not-allowed;
	opacity: 0.7;
	transform: none;
}

.divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 14px 0 10px;
	color: rgba(17, 32, 60, 0.4);
	font-size: 15px;
}

.divider:before,
.divider:after {
	content: '';
	height: 1px;
	flex: 1;
	background: rgba(17, 32, 60, 0.12);
}

.social-connect .facebook-connect a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	border: 1px solid rgba(19, 35, 68, 0.14);
	border-radius: 14px;
	background: #fff;
	color: #19396d;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.social-connect .facebook-connect a:hover {
	background: #f4f7ff;
	text-decoration: none;
}

.password-panel {
	display: none;
	margin-top: 12px;
	padding: 12px;
	border: 1px solid rgba(255, 133, 34, 0.24);
	border-radius: 16px;
	background: rgba(255, 247, 239, 0.86);
}

.password-panel p {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(19, 35, 68, 0.72);
}

.password-panel .field input {
	height: 52px;
}

.secondary-button {
	width: 100%;
	height: 50px;
	border: 1px solid rgba(255, 98, 26, 0.28);
	border-radius: 12px;
	background: #fff;
	color: #ff6b1a;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.trial-note {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-top: 16px;
	padding: 16px 18px;
	border: 1px solid rgba(255, 171, 85, 0.42);
	border-radius: 18px;
	background: linear-gradient(90deg, rgba(255, 247, 236, 0.92), rgba(255, 252, 248, 0.98));
	color: #8c5c18;
}

.trial-note svg {
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.trial-note strong,
.trial-note span {
	display: block;
}

.trial-note strong {
	font-size: 16px;
}

.trial-note span {
	margin-top: 3px;
	font-size: 13px;
	color: rgba(140, 92, 24, 0.82);
}

.auth-footer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 22px;
	background: rgba(3, 22, 59, 0.94);
	color: rgba(255, 255, 255, 0.9);
	font-size: 13px;
}

.auth-footer a {
	color: inherit;
	text-decoration: none;
}

.auth-footer-links,
.auth-footer-contact {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.auth-footer-social {
	display: flex;
	align-items: center;
	gap: 10px;
}

.auth-footer-social span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 12px;
    padding: 5px 8px;
    font-weight: normal;
}

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

footer.auth-footer .auth-footer-social a {
    text-decoration: none;
}

#form-wrapper .message {
    min-height: 37px;
    font-size: 18px;
    line-height: 35px;
}

@media (min-width: 1400px) and (max-width: 1765px) {
	.redesign-shell:before {
		left: 33%;
	}
	.redesign-shell:after {
    	left: calc(33% + 8px);
	}
}

@media (max-width: 1400px) {

	.redesign-shell:before {
		left: calc(39% + 5px);
		transform: rotate(0deg);
	}
	
	.redesign-shell:after {
		left: calc(39% + 8px);
		transform: rotate(0deg) translateX(-100%);
	}
}

@media (max-width: 1024px) {
	
	.redesign-main section.auth-panel {
		display: flex;
		flex-direction: column;
	}
	.redesign-main section.auth-panel .auth-nav {
		order: 1;
	}
	.auth-nav {
		margin: 50px 0;
	}


}

@media (min-width: 1161px) and (max-height: 920px) {
	.redesign-main {
		transform: scale(0.92);
		transform-origin: top left;
	}
}

@media (min-width: 1161px) and (max-height: 840px) {
	.redesign-main {
		transform: scale(0.86);
	}
}

.form-message-fallback {
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: 14px;
	font-size: 15px;
}

.form-message-fallback.error {
	background: #fff1f1;
	color: #c53131;
	border: 1px solid #f5c3c3;
}

.form-message-fallback.success {
	background: #effbf2;
	color: #1b8a42;
	border: 1px solid #bfe7cc;
}

.form-message-fallback.loading {
	background: #eef4ff;
	color: #2455b3;
	border: 1px solid #c8d9ff;
}
input, button, textarea {
    font-family: "Noto Sans Thai", "Prompt", "Segoe UI", Tahoma, sans-serif;
    font-weight: normal;
}

@media (max-width: 1320px) {
	.brand-title {
		font-size: 46px;
	}

	.brand-copy {
		font-size: 24px;
	}

	.feature-title {
		font-size: 24px;
	}

	.feature-text {
		font-size: 18px;
	}
}

@media (max-width: 1160px) {
	html,
	body.redesign-login {
		height: auto;
		overflow: auto;
	}

	body.redesign-login {
		background-attachment: scroll;
	}

	.brand-logo-mobile-wrap {
		display: flex;
		justify-content: center;
		margin-bottom: 18px;
	}

	.redesign-shell {
		height: auto;
		min-height: 100vh;
		padding: 22px 20px 28px;
		overflow: visible;
	}

	.redesign-shell:before {
		display: none;
	}

	.redesign-shell:after { 
		display: none;
	}

	.redesign-main {
		grid-template-columns: 1fr;
		gap: 24px;
		height: auto;
		transform: none;
		max-width: 980px;
		margin: 0 auto;
		padding-bottom: 0;
		align-items: stretch;
	}

	.brand-panel,
	.auth-panel {
		padding: 0;
	}

	.auth-panel {
		order: 1;
	}

	.brand-panel {
		order: 2;
		padding: 28px 24px;
		border-radius: 28px;
		background: rgba(255, 255, 255, 0.92);
		box-shadow: 0 26px 60px rgba(5, 25, 74, 0.14);
	}

	.brand-copy,
	.feature-list {
		max-width: none;
	}

	.auth-nav {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px;
		max-width: none;
		margin-bottom: 24px;
	}

	.auth-nav-item {
		padding: 14px 10px 12px;
		font-size: 20px;
	}

	.auth-nav-item svg {
		width: 34px;
		height: 34px;
		margin-bottom: 8px;
	}

	.auth-card {
		padding: 28px 24px 22px;
		border-radius: 28px;
	}

	.feature-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.feature-item {
		gap: 12px;
		padding: 16px;
		border-radius: 18px;
		background: rgba(245, 247, 252, 0.92);
	}

	.hero-badge {
		width: 100%;
		max-width: 420px;
	}

	.auth-footer {
		position: static;
		margin: 24px -20px -28px;
		padding: 18px 20px 22px;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
	}
}

@media (max-width: 860px) {
	.redesign-shell {
		padding: 18px 14px 20px;
	}

	.brand-logo-mobile-wrap {
		margin-bottom: 16px;
	}

	.auth-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.auth-card {
		padding: 24px 16px 20px;
		border-radius: 24px;
	}

	.auth-mobile-tabs {
		margin-bottom: 18px;
	}

	.brand-panel {
		padding: 24px 18px;
		border-radius: 24px;
	}

	.brand-title {
		font-size: 34px;
		text-align: center;
	}

	.brand-copy {
		font-size: 18px;
		text-align: center;
	}

	.feature-item {
		grid-template-columns: 58px 1fr;
	}

	.feature-list {
		grid-template-columns: 1fr;
	}

	.feature-icon {
		width: 58px;
		height: 58px;
	}

	.feature-title {
		font-size: 21px;
	}

	.feature-text {
		font-size: 16px;
	}

	.hero-badge {
		max-width: none;
	}

	.auth-footer {
		margin: 20px -14px -20px;
		padding: 18px 14px 22px;
	}

	.auth-footer-links,
	.auth-footer-contact {
		gap: 10px 14px;
	}

	.trial-note {
		flex-direction: column;
		gap: 12px;
		padding: 16px;
	}
}

@media (max-width: 560px) {
	.redesign-shell {
		padding-left: 14px;
		padding-right: 14px;
	}

	.auth-nav {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.auth-nav-item {
		min-height: 84px;
		padding: 12px 8px 10px;
		font-size: 12px;
		border-radius: 14px;
	}

	.auth-nav-item svg {
		width: 28px;
		height: 28px;
		margin-bottom: 6px;
	}

	.brand-panel {
		padding: 20px 16px;
	}

	.brand-logo {
		display: block;
		margin: 0 auto 16px;
	}

	.brand-logo-mobile {
		width: clamp(160px, 48vw, 220px);
	}

	.brand-title {
		font-size: 28px;
		line-height: 1.5;
	}

	.brand-copy {
		font-size: 16px;
		margin-bottom: 16px;
	}

	.feature-item {
		grid-template-columns: 50px 1fr;
		padding: 14px;
	}

	.feature-icon {
		width: 50px;
		height: 50px;
	}

	.feature-title {
		font-size: 18px;
	}

	.feature-text {
		font-size: 14px;
	}

	.auth-heading {
		font-size: 28px;
	}

	.auth-subheading {
		margin-bottom: 16px;
		font-size: 14px;
	}

	.field input,
	.password-panel .field input {
		height: 46px;
		padding-left: 46px;
		font-size: 15px;
	}

	.field svg {
		left: 16px;
		width: 18px;
		height: 18px;
	}

	.primary-button,
	.secondary-button {
		height: 48px;
		font-size: 16px;
	}

	.form-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.hero-badge {
		width: 100%;
		padding: 14px 16px;
	}

	.auth-footer {
		align-items: center;
		text-align: center;
	}

	.auth-footer-links,
	.auth-footer-contact {
		justify-content: center;
	}
}

@media (max-width: 420px) {
	.auth-nav {
		grid-template-columns: 1fr;
	}

	.auth-mobile-tabs {
		grid-template-columns: 1fr;
	}

	.auth-card {
		padding: 22px 14px 18px;
	}

	.brand-title {
		font-size: 24px;
	}

	.checkbox-label {
		align-items: flex-start;
	}
}
