.scta-app {
	--scta-border: #d8dee8;
	--scta-text: #142033;
	--scta-muted: #657084;
	--scta-soft: #f5f8fb;
	--scta-primary: #176b5b;
	--scta-primary-dark: #0f5145;
	--scta-secondary: #314056;
	box-sizing: border-box;
	color: var(--scta-text);
	font-family: inherit;
	margin: 0 auto;
	max-width: 1120px;
	padding: 18px;
}

.scta-app *,
.scta-app *::before,
.scta-app *::after {
	box-sizing: border-box;
}

.scta-admin-wrap {
	max-width: none;
	padding-left: 0;
}

.scta-panel {
	background: #fff;
	border: 1px solid var(--scta-border);
	border-radius: 8px;
	box-shadow: 0 10px 26px rgba(20, 32, 51, 0.08);
	margin-bottom: 22px;
	padding: 22px;
}

.scta-auth-app {
	max-width: 998px;
	padding: 14px 24px;
}

.scta-auth-card {
	background:
		linear-gradient(135deg, rgba(255, 237, 218, 0.82) 0%, rgba(231, 249, 239, 0.82) 45%, rgba(226, 242, 255, 0.9) 100%),
		#ffffff;
	border: 1px solid #c8dbe7;
	border-radius: 8px;
	box-shadow: 0 14px 30px rgba(20, 32, 51, 0.08);
	padding: 42px 32px 32px;
}

.scta-auth-brand {
	align-items: center;
	display: flex;
	gap: 22px;
	margin-bottom: 34px;
}

.scta-auth-brand h2 {
	color: #111827;
	font-size: 52px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
	margin: 0 0 12px;
}

.scta-auth-brand p {
	color: #374151;
	font-size: 20px;
	margin: 0;
}

.scta-auth-mark {
	align-items: center;
	aspect-ratio: 1;
	background: linear-gradient(135deg, #f97316 0%, #4f7df3 100%);
	border-radius: 20px;
	color: #fff;
	display: flex;
	flex: 0 0 80px;
	font-size: 30px;
	font-weight: 900;
	justify-content: center;
	letter-spacing: 0;
}

.scta-auth-switch {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scta-auth-switch > input {
	left: -9999px;
	position: absolute;
}

.scta-auth-switch > label {
	align-items: center;
	background: rgba(255, 255, 255, 0.76);
	border: 1px solid var(--scta-border);
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	font-weight: 900;
	justify-content: center;
	min-height: 46px;
	padding: 10px 14px;
	text-align: center;
}

#scta-staff-mode:checked + label,
#scta-teacher-mode:checked + label {
	background: #111827;
	border-color: #111827;
	color: #fff;
}

.scta-auth-forms {
	grid-column: 1 / -1;
}

.scta-auth-forms .scta-form {
	gap: 22px;
}

.scta-teacher-form {
	display: none;
}

#scta-teacher-mode:checked ~ .scta-auth-forms .scta-staff-form {
	display: none;
}

#scta-teacher-mode:checked ~ .scta-auth-forms .scta-teacher-form {
	display: grid;
}

.scta-auth-card .scta-form label {
	color: #020617;
	font-size: 18px;
	font-weight: 900;
	gap: 12px;
}

.scta-auth-card .scta-form input {
	background: rgba(255, 255, 255, 0.88);
	border-color: #cfd8e3;
	border-radius: 10px;
	font-size: 20px;
	min-height: 60px;
	padding: 12px 16px;
}

.scta-auth-card .scta-button-primary {
	background: linear-gradient(90deg, #ff7417 0%, #ffd264 100%);
	border-radius: 8px;
	color: #06111f;
	font-size: 18px;
	min-height: 64px;
	width: 100%;
}

.scta-auth-card .scta-button-primary:hover {
	background: linear-gradient(90deg, #f06412 0%, #ffc247 100%);
	color: #06111f;
}

.scta-panel-head {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin-bottom: 18px;
}

.scta-panel h2,
.scta-panel h3 {
	letter-spacing: 0;
	margin: 0 0 12px;
}

.scta-form {
	display: grid;
	gap: 14px;
}

.scta-form label {
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-weight: 700;
}

.scta-form input {
	background: #fff;
	border: 1px solid var(--scta-border);
	border-radius: 6px;
	color: var(--scta-text);
	font: inherit;
	min-height: 42px;
	padding: 9px 11px;
	width: 100%;
}

.scta-grid,
.scta-login-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scta-button,
.scta-small-button {
	align-items: center;
	background: var(--scta-secondary);
	border: 0;
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 800;
	justify-content: center;
	min-height: 40px;
	padding: 9px 14px;
	text-decoration: none;
	width: fit-content;
}

.scta-button-primary {
	background: var(--scta-primary);
}

.scta-button:hover,
.scta-small-button:hover {
	background: var(--scta-primary-dark);
	color: #fff;
	text-decoration: none;
}

.scta-small-button {
	font-size: 13px;
	min-height: 34px;
	padding: 7px 10px;
}

.scta-message {
	border-radius: 6px;
	margin: 0 0 14px;
	padding: 11px 13px;
}

.scta-message-success {
	background: #eaf8f0;
	border: 1px solid #a8dfbf;
	color: #13502f;
}

.scta-message-error {
	background: #fff0f0;
	border: 1px solid #ffc4c4;
	color: #8a1f17;
}

.scta-profile {
	background: var(--scta-soft);
	border: 1px solid var(--scta-border);
	border-radius: 8px;
	padding: 14px;
}

.scta-table-wrap {
	overflow-x: auto;
}

.scta-table {
	border-collapse: collapse;
	width: 100%;
}

.scta-table th,
.scta-table td {
	border-bottom: 1px solid var(--scta-border);
	padding: 12px 10px;
	text-align: left;
}

.scta-table th {
	background: var(--scta-soft);
	font-weight: 900;
}

@media (max-width: 760px) {
	.scta-grid,
	.scta-login-grid {
		grid-template-columns: 1fr;
	}

	.scta-panel {
		padding: 16px;
	}

	.scta-auth-app {
		padding: 12px;
	}

	.scta-auth-card {
		padding: 24px 18px;
	}

	.scta-auth-brand {
		align-items: flex-start;
		gap: 14px;
	}

	.scta-auth-brand h2 {
		font-size: 36px;
	}

	.scta-auth-brand p {
		font-size: 16px;
	}

	.scta-auth-mark {
		border-radius: 16px;
		flex-basis: 64px;
		font-size: 24px;
	}

	.scta-auth-switch {
		grid-template-columns: 1fr;
	}
}
