.login-screen .backdrop {
	background: transparent;
	opacity: 1;
}

.login-page-shell {
	--role-accent: #7c3aed;
	--role-accent-soft: rgba(124, 58, 237, 0.14);
	--role-accent-deep: #5b21b6;
	--role-text: #201433;
	max-width: 860px;
	width: min(860px, calc(100vw - 48px));
	left: auto;
	right: 24px;
	top: 28px;
	bottom: 28px;
	margin-left: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.login-page-shell.role-admin {
	--role-accent: #8b5cf6;
	--role-accent-soft: rgba(139, 92, 246, 0.15);
	--role-accent-deep: #6d28d9;
	--role-text: #2f1a53;
}

.login-page-shell.role-student {
	--role-accent: #10b981;
	--role-accent-soft: rgba(16, 185, 129, 0.15);
	--role-accent-deep: #0f9f78;
	--role-text: #0f3f38;
}

.login-page-shell.role-teacher {
	--role-accent: #1d72f3;
	--role-accent-soft: rgba(29, 114, 243, 0.14);
	--role-accent-deep: #0d5cd7;
	--role-text: #173761;
}

.login-selector-panel,
.login-form-panel {
	width: 100%;
	transition: opacity 0.24s ease, transform 0.24s ease;
}

.login-selector-panel.is-hidden,
.login-form-panel.is-hidden {
	display: none;
}

.login-selector-copy {
	display: none;
}

.login-selector-panel {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 24px;
}

.selector-kicker {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-selector-copy h2 {
	font-size: 34px;
	font-weight: 800;
	line-height: 1.05;
	margin: 14px 0 10px;
}

.login-selector-copy p {
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
}

.role-choice-card {
	width: 248px;
	border: 0;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding: 28px 20px 20px;
	margin-bottom: 0;
	border-radius: 24px;
	box-shadow: 0 24px 42px rgba(5, 17, 34, 0.18);
	position: relative;
	overflow: hidden;
	text-align: center;
	cursor: pointer;
	border: 4px solid var(--role-accent);
}

.role-choice-card::before {
	display: none;
}

.role-choice-card.role-admin {
	--role-accent: #8b5cf6;
	--role-pill: rgba(139, 92, 246, 0.15);
	--role-pill-text: #6d28d9;
}

.role-choice-card.role-student {
	--role-accent: #10b981;
	--role-pill: rgba(16, 185, 129, 0.15);
	--role-pill-text: #0f9f78;
}

.role-choice-card.role-teacher {
	--role-accent: #1d72f3;
	--role-pill: rgba(29, 114, 243, 0.15);
	--role-pill-text: #0d5cd7;
}

.role-choice-card:hover,
.role-choice-card:focus {
	outline: none;
	transform: translateY(-2px);
	box-shadow: 0 20px 38px rgba(5, 17, 34, 0.2);
}

.role-choice-icon {
	width: 68px;
	height: 68px;
	border-radius: 18px;
	background: var(--role-pill);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--role-pill-text);
	font-size: 24px;
	margin-top: 2px;
}

.role-choice-text {
	display: block;
	min-width: 0;
	width: 100%;
}

.role-choice-text strong {
	display: block;
	font-size: 24px;
	font-weight: 800;
	color: #1c2533;
	margin-bottom: 10px;
	line-height: 1.25;
}

.role-choice-text small {
	display: block;
	font-size: 14px;
	line-height: 1.6;
	color: #667085;
	max-width: 178px;
	margin: 0 auto;
}

.role-choice-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	padding: 0 20px;
	border-radius: 15px;
	background: var(--role-accent);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	min-width: 100%;
	margin-top: 0;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 18px rgba(16, 24, 40, 0.12);
}

.login-form-panel .login-body {
	padding: 30px 30px 24px;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 26px 70px rgba(9, 18, 35, 0.16);
	border: 3px solid rgba(255, 255, 255, 0.62);
	backdrop-filter: blur(10px);
	max-width: 430px;
	margin-left: auto;
}

.login-form-panel .login-header {
	background: transparent;
	padding: 0 0 20px;
	display: block;
	grid-template-areas:
		"summary back"
		"summary logo";
	column-gap: 24px;
	row-gap: 18px;
	align-items: start;
}

.login-back-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	border-radius: 999px;
	padding: 9px 14px;
	background: var(--role-accent-soft);
	color: var(--role-text);
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 18px;
}

.login-role-badge {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 0;
	max-width: none;
}

.login-role-icon {
	width: 58px;
	height: 58px;
	border-radius: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--role-accent-soft);
	color: var(--role-accent-deep);
	font-size: 24px;
	flex-shrink: 0;
}

.login-role-copy {
	min-width: 0;
}

.login-role-label {
	margin: 2px 0 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #7a8091;
}

.login-form-panel .login-role-copy h3 {
	margin: 0;
	font-size: 28px;
	font-weight: 800;
	color: #161f2d;
	line-height: 1.05;
}

.login-role-description {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.45;
	color: #606b80;
}

.login-form-panel .logo {
	display: none;
}

.login-form-panel .logo img {
	display: none;
}

.login-form-panel .alert {
	border-radius: 18px;
	border: 1px solid rgba(220, 53, 69, 0.15);
	margin-bottom: 18px;
}

.login-form-panel .login-input,
.login-form-panel .login-input:focus {
	border-bottom: 1px solid rgba(151, 162, 181, 0.5);
}

.login-form-panel .input-group {
	border-radius: 20px;
	padding: 6px 12px;
	background: #fff;
	border: 1px solid rgba(210, 219, 232, 0.92);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
	margin-bottom: 18px !important;
}

.login-form-panel .input-group:focus-within {
	border-color: var(--role-accent);
	box-shadow: 0 0 0 4px var(--role-accent-soft);
}

.login-form-panel .input-group-text {
	color: var(--role-accent-deep);
}

.login-form-panel .form-control {
	height: 56px;
	background: transparent;
	font-size: 16px;
}

.login-submit-wrap {
	margin-bottom: 18px !important;
}

.login-form-panel .login-submit-btn,
.login-form-panel .login-submit-btn:hover,
.login-form-panel .login-submit-btn:focus {
	border: 0;
	color: #fff !important;
	font-weight: 700;
	background: linear-gradient(135deg, var(--role-accent) 0%, var(--role-accent-deep) 100%) !important;
	box-shadow: 0 16px 30px rgba(16, 24, 40, 0.16);
	height: 54px;
	font-size: 16px;
	border-radius: 16px;
	opacity: 1 !important;
	filter: none !important;
}

.login-form-panel .login-submit-btn:hover,
.login-form-panel .login-submit-btn:focus {
	filter: brightness(1.02);
}

.login-form-panel .login-footer {
	background: rgba(246, 249, 253, 0.96);
	border-radius: 20px;
	padding: 20px 22px;
	text-align: center;
}

.login-form-panel .login-footer a {
	color: var(--role-accent-deep);
	font-weight: 700;
}

.login-page-copyright {
	position: fixed;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.94);
	text-shadow: 0 2px 8px rgba(4, 18, 37, 0.3);
	text-align: center;
	z-index: 2;
	font-size: 14px;
}

.login-page-copyright a {
	color: rgba(255, 255, 255, 0.94);
}

@media screen and (max-width: 991px) {
	.login-page-shell {
		right: 28px;
	}
}

@media screen and (max-width: 768px) {
	.login-page-shell {
		width: calc(100vw - 24px);
		right: 12px;
		left: 12px;
		top: 18px;
		bottom: 18px;
	}

	.login-selector-panel {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.role-choice-card {
		width: 100%;
		max-width: 420px;
		margin-left: auto;
	}

	.role-choice-cta {
		width: 100%;
	}

	.login-form-panel .login-body {
		padding: 24px 22px 20px;
	}

	.login-form-panel .login-header {
		display: block;
	}

	.login-back-button,
	.login-form-panel .logo {
		justify-self: auto;
	}

	.login-form-panel .login-role-copy h3 {
		font-size: 26px;
	}

	.login-role-description {
		font-size: 14px;
	}

	.login-page-copyright {
		bottom: 10px;
		font-size: 13px;
		width: calc(100vw - 24px);
	}
}

@media screen and (max-width: 500px) {
	.login-page-shell {
		width: calc(100vw - 16px);
		left: 8px;
		right: 8px;
		top: 12px;
		bottom: 12px;
	}

	.role-choice-card {
		max-width: none;
		width: 100%;
		border-radius: 18px;
		padding: 16px 14px 14px;
	}

	.role-choice-text small {
		max-width: 150px;
	}

	.login-form-panel .login-body {
		padding: 20px;
		border-radius: 24px;
	}

	.login-role-badge {
		align-items: center;
	}

	.login-role-icon {
		width: 52px;
		height: 52px;
		border-radius: 16px;
	}

	.login-form-panel .login-role-copy h3 {
		font-size: 24px;
	}

	.login-role-description {
		font-size: 13px;
	}

	.login-page-copyright {
		font-size: 12px;
		width: calc(100vw - 16px);
	}
}
