/* Tela de login - Vision Soluções Hospitalares */
:root {
	--lg-primary: #1d5fe0;
	--lg-primary-dark: #1448b0;
	--lg-navy: #0f1f4b;
	--lg-text: #1c2540;
	--lg-muted: #6b7694;
	--lg-border: #dfe5f1;
	--lg-danger: #d92d3a;
	--lg-success: #16a34a;
}

html, body.lg-body {
	margin: 0;
	padding: 0;
	height: 100%;
	font-family: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--lg-text);
	background: #fff;
}

.lg-form { height: 100%; margin: 0; }

.lg-page {
	display: flex;
	min-height: 100vh;
}

/* ---------- Painel esquerdo ---------- */
.lg-hero {
	flex: 1 1 50%;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px 40px 40px 40px;
	background:
		radial-gradient(900px 500px at 85% -10%, #c7dbff 0%, rgba(199, 219, 255, 0) 60%),
		linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
}

.lg-brand {
	position: absolute;
	top: 28px;
	left: 40px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.lg-brand svg { width: 44px; height: 34px; }
.lg-brand-name { font-size: 22px; font-weight: 800; letter-spacing: .5px; color: var(--lg-navy); line-height: 1; }
.lg-brand-sub { font-size: 12px; font-weight: 700; letter-spacing: .3px; color: var(--lg-muted); margin-top: 3px; text-transform: uppercase; }

.lg-hero-content { max-width: 560px; }

.lg-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--lg-border);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--lg-navy);
	box-shadow: 0 1px 2px rgba(15, 31, 75, .05);
}
.lg-chip i { color: var(--lg-primary); }

.lg-title {
	margin: 22px 0 12px 0;
	font-size: 46px;
	line-height: 1.1;
	font-weight: 800;
	color: var(--lg-navy);
	letter-spacing: -1px;
}
.lg-title span { color: var(--lg-primary); }

.lg-lead { margin: 0 0 28px 0; font-size: 16px; line-height: 1.55; color: #3e4a6b; }

.lg-features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.lg-feature {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--lg-border);
	border-radius: 14px;
	padding: 12px 14px;
	box-shadow: 0 2px 8px rgba(15, 31, 75, .04);
}
.lg-feature-icon {
	flex: 0 0 38px;
	height: 38px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 16px;
}
.lg-ic-blue { background: linear-gradient(135deg, #3b82f6, #1d5fe0); }
.lg-ic-teal { background: linear-gradient(135deg, #2dd4bf, #0d9488); }
.lg-ic-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.lg-ic-orange { background: linear-gradient(135deg, #fdba74, #f97316); }
.lg-feature-title { font-size: 13px; font-weight: 700; color: var(--lg-navy); }
.lg-feature-desc { font-size: 12px; color: var(--lg-muted); margin-top: 2px; }

.lg-footnote {
	position: absolute;
	left: 40px;
	bottom: 24px;
	font-size: 12.5px;
	color: var(--lg-muted);
	display: flex;
	align-items: center;
	gap: 8px;
}
.lg-footnote i { color: var(--lg-primary); }

/* ---------- Painel direito ---------- */
.lg-side {
	flex: 1 1 50%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
	background: #f6f8fc;
}

.lg-back {
	position: absolute;
	top: 22px;
	right: 24px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--lg-border);
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--lg-navy);
	text-decoration: none;
}
.lg-back:hover { border-color: var(--lg-primary); color: var(--lg-primary); }

.lg-card {
	width: 100%;
	max-width: 396px;
	background: #fff;
	border-radius: 18px;
	padding: 30px 32px 22px 32px;
	box-shadow: 0 10px 40px rgba(15, 31, 75, .10);
	box-sizing: border-box;
}

.lg-card-icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 14px auto;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #3b82f6, #1d5fe0);
	color: #fff;
	font-size: 22px;
	box-shadow: 0 6px 16px rgba(29, 95, 224, .35);
}
.lg-card h2 { margin: 0; text-align: center; font-size: 21px; font-weight: 800; color: var(--lg-navy); line-height: 1.25; }
.lg-card h2 span { display: block; color: var(--lg-primary); }
.lg-card-sub { text-align: center; margin: 8px 0 22px 0; font-size: 12.5px; color: var(--lg-muted); }

.lg-field { margin-bottom: 14px; }
.lg-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--lg-navy); margin-bottom: 6px; }

.lg-input-wrap { position: relative; }
.lg-input-wrap > i.lg-ico {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #5b6b8c;
	font-size: 13px;
	z-index: 2;
	pointer-events: none;
}

/* Telerik RadTextBox (modo lightweight) */
.lg-input-wrap .RadInput,
.lg-input-wrap .RadInput.riSingle { width: 100% !important; display: block; }
.lg-input-wrap input.riTextBox,
.lg-input-wrap input[type=text],
.lg-input-wrap input[type=password] {
	width: 100% !important;
	height: 38px;
	box-sizing: border-box;
	padding: 0 44px 0 38px !important;
	border: 1px solid var(--lg-border) !important;
	border-radius: 10px !important;
	background: #fff !important;
	font-family: inherit;
	font-size: 14px;
	color: var(--lg-text) !important;
	outline: none;
	box-shadow: none !important;
	transition: border-color .15s, box-shadow .15s;
}
.lg-input-wrap input:focus {
	outline: 2px solid var(--lg-primary);
	outline-offset: 2px;
	border-color: var(--lg-primary) !important;
	box-shadow: 0 0 0 3px rgba(29, 95, 224, .15) !important;
}
.lg-input-wrap input::placeholder { color: #98a2bd !important; }
.lg-input-wrap input[readonly] { background: #f3f5fa !important; color: #4b5675 !important; cursor: not-allowed; }

.lg-eye {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	color: #5b6b8c;
	cursor: pointer;
	z-index: 3;
	border-radius: 8px;
}
.lg-eye:hover { color: var(--lg-primary); }

.lg-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px 0; }
.lg-check { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #3e4a6b; cursor: pointer; }
.lg-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--lg-primary); }
.lg-link { font-size: 12.5px; font-weight: 700; color: var(--lg-primary); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.lg-link:hover { text-decoration: underline; }

.lg-submit,
.lg-submit:hover,
.lg-submit:focus { text-decoration: none; color: #fff; }
.lg-submit {
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 10px;
	background: var(--lg-primary);
	color: #fff;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 6px 16px rgba(29, 95, 224, .35);
	transition: background .15s, transform .05s;
}
.lg-submit:hover { background: var(--lg-primary-dark); }
.lg-submit:active { transform: translateY(1px); }
.lg-submit[disabled] { opacity: .7; cursor: wait; }

.lg-alert {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 14px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fdecee;
	border: 1px solid #f6c3c8;
	color: var(--lg-danger);
	font-size: 12.5px;
	font-weight: 600;
}
.lg-alert.lg-ok { background: #e8f7ee; border-color: #b8e6c9; color: #166534; }

.lg-secure {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #eef1f8;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.lg-secure-icon {
	width: 30px; height: 30px; border-radius: 50%;
	background: #e3f6ea; color: var(--lg-success);
	display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.lg-secure-title { font-size: 12px; font-weight: 700; color: var(--lg-navy); }
.lg-secure-desc { font-size: 12px; color: var(--lg-muted); }

.lg-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--lg-muted); }
.lg-meta .lg-link { font-size: 12px; font-weight: 500; color: var(--lg-muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 991px) {
	.lg-hero { display: none; }
	.lg-side { flex-basis: 100%; }
}
@media (max-width: 440px) {
	.lg-card { padding: 24px 20px 18px 20px; }
	.lg-back { position: static; margin-bottom: 14px; }
	.lg-side { flex-direction: column; justify-content: flex-start; padding-top: 20px; }
}
