/* AG Khách Sỉ – cổng đăng nhập / đăng ký. Author: August - https://augustcsgo.com */
.ag-ws-portal {
	--ag-ws-accent: #0b6b4a;
	--ag-ws-accent-2: #22b07d;
	--ag-ws-border: #e5e7eb;
	--ag-ws-muted: #6b7280;
	display: flex;
	justify-content: center;
	padding: 24px 12px;
}

.ag-ws-portal *,
.ag-ws-portal *::before,
.ag-ws-portal *::after {
	box-sizing: border-box;
}

.ag-ws-portal .ag-ws-card {
	width: 100%;
	max-width: 480px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(11, 107, 74, 0.15);
	overflow: hidden;
}

.ag-ws-portal .ag-ws-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 24px;
	background: linear-gradient(135deg, #0b6b4a 0%, #0f9d6c 55%, #4cc38a 100%);
	color: #fff;
}

.ag-ws-portal .ag-ws-head__icon {
	font-size: 34px;
	line-height: 1;
}

.ag-ws-portal .ag-ws-title {
	margin: 0;
	color: #fff;
	font-size: 22px;
	line-height: 1.2;
}

.ag-ws-portal .ag-ws-sub {
	margin: 4px 0 0;
	font-size: 13px;
	opacity: 0.85;
}

.ag-ws-portal .ag-ws-body {
	padding: 22px 24px 26px;
}

/* Tabs (thuần CSS) */
.ag-ws-portal .ag-ws-tabs {
	display: flex;
	flex-wrap: wrap;
}

.ag-ws-portal .ag-ws-tab-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ag-ws-portal .ag-ws-tab {
	flex: 1 1 50%;
	margin: 0 0 18px;
	padding: 10px 6px;
	text-align: center;
	font-weight: 600;
	color: var(--ag-ws-muted);
	border-bottom: 2px solid var(--ag-ws-border);
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
}

.ag-ws-portal .ag-ws-tab-input:checked + .ag-ws-tab {
	color: var(--ag-ws-accent);
	border-color: var(--ag-ws-accent-2);
}

.ag-ws-portal .ag-ws-tab-input:focus-visible + .ag-ws-tab {
	outline: 2px solid var(--ag-ws-accent-2);
	outline-offset: 2px;
}

.ag-ws-portal .ag-ws-panel {
	display: none;
	flex: 1 1 100%;
}

.ag-ws-portal #ag-ws-tab-login:checked ~ .ag-ws-panel--login,
.ag-ws-portal #ag-ws-tab-register:checked ~ .ag-ws-panel--register {
	display: block;
}

/* Form */
.ag-ws-portal .ag-ws-field {
	margin: 0 0 14px;
}

.ag-ws-portal .ag-ws-field label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ag-ws-accent);
}

.ag-ws-portal .ag-ws-req {
	color: #dc2626;
}

.ag-ws-portal .ag-ws-field input,
.ag-ws-portal .ag-ws-field select,
.ag-ws-portal .ag-ws-field textarea {
	width: 100%;
	margin: 0;
	padding: 11px 13px;
	font-size: 15px;
	border: 1px solid var(--ag-ws-border);
	border-radius: 10px;
	background: #f9fafb;
	box-shadow: none;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.ag-ws-portal .ag-ws-field input:focus,
.ag-ws-portal .ag-ws-field select:focus,
.ag-ws-portal .ag-ws-field textarea:focus {
	outline: none;
	border-color: var(--ag-ws-accent-2);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(34, 176, 125, 0.18);
}

.ag-ws-portal .ag-ws-field select {
	height: auto;
	min-height: 46px;
	appearance: auto;
}

/* Nhóm địa chỉ: Tỉnh + Quận cùng 1 hàng */
.ag-ws-portal .ag-ws-address {
	margin: 0 0 14px;
	padding: 12px 14px 0;
	border: 1px dashed #bfe8d4;
	border-radius: 12px;
	background: #f6fdf9;
}

.ag-ws-portal .ag-ws-address legend {
	padding: 0 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ag-ws-accent);
}

.ag-ws-portal .ag-ws-address .ag-ws-field input,
.ag-ws-portal .ag-ws-address .ag-ws-field select {
	background: #fff;
}

.ag-ws-portal .ag-ws-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 10px;
}

@media (max-width: 420px) {
	.ag-ws-portal .ag-ws-row {
		grid-template-columns: 1fr;
	}
}

.ag-ws-portal .ag-ws-btn {
	display: block;
	width: 100%;
	margin: 6px 0 0;
	padding: 13px 16px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: var(--ag-ws-accent);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: transform 0.1s, background 0.15s;
}

.ag-ws-portal .ag-ws-btn:hover {
	background: #0f9d6c;
}

.ag-ws-portal .ag-ws-btn:active {
	transform: translateY(1px);
}

.ag-ws-portal .ag-ws-small {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--ag-ws-muted);
	text-align: center;
}

.ag-ws-portal .ag-ws-lead {
	margin: 0 0 16px;
	font-size: 14px;
}

.ag-ws-portal .ag-ws-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ag-ws-portal .ag-ws-turnstile {
	margin: 0 0 12px;
}

/* Thông báo */
.ag-ws-portal .ag-ws-alert {
	margin: 0 0 16px;
	padding: 12px 14px;
	font-size: 14px;
	border-radius: 10px;
}

.ag-ws-portal .ag-ws-alert ul {
	margin: 0;
	padding-left: 18px;
}

.ag-ws-portal .ag-ws-alert--error {
	background: #fef2f2;
	color: #991b1b;
}

.ag-ws-portal .ag-ws-alert--success {
	background: #ecfdf5;
	color: #065f46;
}

.ag-ws-portal .ag-ws-state {
	text-align: center;
	padding: 10px 0;
}

.ag-ws-portal .ag-ws-state__icon {
	font-size: 42px;
}

.ag-ws-portal .ag-ws-state h3 {
	margin: 8px 0;
}

.ag-ws-portal .ag-ws-state--thanks h3 {
	color: var(--ag-ws-accent);
	font-size: 20px;
}

.ag-ws-portal .ag-ws-mailbox {
	margin: 16px 0 10px;
	padding: 14px 16px;
	font-size: 15px;
	line-height: 1.6;
	color: #065f46;
	background: #ecfdf5;
	border: 1px dashed #6ee7b7;
	border-radius: 12px;
}

.ag-ws-portal a.ag-ws-btn {
	text-align: center;
	text-decoration: none;
	color: #fff;
}

.ag-ws-portal a.ag-ws-btn.ag-ws-btn--ghost {
	margin-top: 16px;
	color: var(--ag-ws-accent);
	background: transparent;
	border: 1px solid var(--ag-ws-accent-2);
}

.ag-ws-portal a.ag-ws-btn.ag-ws-btn--ghost:hover {
	color: #fff;
	background: var(--ag-ws-accent-2);
}

/* Bảng điều khiển khách sỉ */
.ag-ws-portal .ag-ws-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ag-ws-portal .ag-ws-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 16px 8px;
	font-weight: 600;
	color: var(--ag-ws-accent);
	text-decoration: none;
	border: 1px solid var(--ag-ws-border);
	border-radius: 12px;
	transition: border-color 0.15s, transform 0.15s;
}

.ag-ws-portal .ag-ws-tile span {
	font-size: 26px;
}

.ag-ws-portal .ag-ws-tile:hover {
	border-color: var(--ag-ws-accent-2);
	transform: translateY(-2px);
}

.ag-ws-portal .ag-ws-logout {
	margin-top: 18px;
}

.ag-ws-portal .ag-ws-head__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	color: #f7b731;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 14px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ag-ws-portal .ag-ws-head__icon .ag-ws-ico {
	width: 30px;
	height: 30px;
}
