/* Scoped login styles — desktop (web), clean full-page layout */

body#login {
	margin: 0;
	padding: 0;
	background: #fff !important;
	overflow-x: hidden;
}

html:has(body#login) {
	background: #fff !important;
}

.isach-login-wrapper {
	min-height: 100vh;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #111;
	line-height: 1.5;
}

.isach-login-wrapper a {
	color: inherit;
	text-decoration: none;
}

.isach-login-wrapper a:hover {
	text-decoration: underline;
}

.isach-login-layout {
	display: flex;
	min-height: 100vh;
}

.isach-login-hero {
	position: relative;
	flex: 1 1 50%;
	overflow: hidden;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.78) 100%),
		radial-gradient(ellipse 120% 100% at 20% 80%, #6b4a32 0%, #3d2817 40%, #1f1410 100%);
	display: flex;
	align-items: flex-end;
}

.isach-login-hero-content {
	position: relative;
	z-index: 1;
	padding: 48px 56px;
	max-width: 520px;
	color: #fff;
}

.isach-login-hero-icon {
	display: inline-flex;
	width: 28px;
	height: 28px;
	margin-bottom: 18px;
}

.isach-login-hero-icon svg {
	width: 100%;
	height: 100%;
	stroke: #fff;
}

.isach-login-hero-title {
	margin: 0 0 14px;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.isach-login-hero-text {
	margin: 0 0 28px;
	font-size: 15px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.88);
}

.isach-login-brand {
	display: block;
	margin-top: 4px;
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-size: 28px;
	line-height: 1.2;
}

.isach-login-panel {
	flex: 1 1 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	padding: 48px 32px;
}

.isach-login-panel-inner {
	width: 100%;
	max-width: 420px;
}

.isach-login-header {
	margin-bottom: 28px;
}

.isach-login-title {
	margin: 0 0 8px;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #111;
}

.isach-login-subtitle {
	margin: 0;
	font-size: 14px;
	color: #6b7280;
}

.isach-login-form {
	margin: 0;
}

.isach-login-error {
	margin-bottom: 16px;
}

.isach-login-field {
	margin-bottom: 18px;
}

.isach-login-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.isach-login-label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #111;
}

.isach-login-label-row .isach-login-label {
	margin-bottom: 0;
}

.isach-login-link-muted {
	font-size: 13px;
	color: #9ca3af;
	white-space: nowrap;
}

.isach-login-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.isach-login-input-icon {
	position: absolute;
	left: 14px;
	display: inline-flex;
	width: 18px;
	height: 18px;
	color: #9ca3af;
	pointer-events: none;
}

.isach-login-input-icon svg {
	width: 100%;
	height: 100%;
}

.isach-login-input {
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	padding: 0 44px 0 42px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
	color: #111;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.isach-login-input::placeholder {
	color: #9ca3af;
}

.isach-login-input:focus {
	border-color: #111;
	box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.isach-login-input:-webkit-autofill,
.isach-login-input:-webkit-autofill:hover,
.isach-login-input:-webkit-autofill:focus,
.isach-login-input:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 1000px #fff inset;
	box-shadow: 0 0 0 1000px #fff inset;
	-webkit-text-fill-color: #111;
	caret-color: #111;
}

.isach-login-toggle-password {
	position: absolute;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #9ca3af;
	cursor: pointer;
}

.isach-login-toggle-password svg {
	width: 18px;
	height: 18px;
}

.isach-login-toggle-password .isach-login-eye-closed {
	display: none;
}

.isach-login-toggle-password.is-visible .isach-login-eye-open {
	display: none;
}

.isach-login-toggle-password.is-visible .isach-login-eye-closed {
	display: block;
}

.isach-login-remember {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	cursor: pointer;
	user-select: none;
}

.isach-login-remember input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.isach-login-remember-box {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
	position: relative;
}

.isach-login-remember input:checked + .isach-login-remember-box {
	background: #111;
	border-color: #111;
}

.isach-login-remember input:checked + .isach-login-remember-box::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.isach-login-remember-text {
	font-size: 14px;
	color: #111;
}

.isach-login-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 10px;
	background: #111;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.isach-login-submit:hover {
	background: #000;
}

.isach-login-submit svg {
	width: 18px;
	height: 18px;
}

.isach-login-divider {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 24px 0;
	color: #9ca3af;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.isach-login-divider::before,
.isach-login-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e5e7eb;
}

.isach-login-google {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 48px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	color: #111;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.isach-login-google:hover {
	background: #f9fafb;
	border-color: #cbd5e1;
	text-decoration: none;
}

.isach-login-google-icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
}

.isach-login-google-icon svg {
	width: 100%;
	height: 100%;
}

.isach-login-help {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 16px 0 0;
	font-size: 13px;
	color: #9ca3af;
}

.isach-login-help a {
	color: #6b7280;
}

.isach-login-help-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 1px solid #d1d5db;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.isach-login-footer {
	margin: 28px 0 0;
	text-align: center;
	font-size: 14px;
	color: #6b7280;
}

.isach-login-footer a {
	font-weight: 700;
	color: #111;
}

.isach-login-wrapper label.error {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #dc2626;
}

@media (max-width: 960px) {
	.isach-login-layout {
		flex-direction: column;
	}

	.isach-login-hero {
		min-height: 280px;
	}

	.isach-login-hero-content {
		padding: 32px 24px;
	}

	.isach-login-hero-title {
		font-size: 28px;
	}

	.isach-login-panel {
		padding: 32px 20px 48px;
	}
}
