* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	min-height: 100vh;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

/* ---------- Login ---------- */

.login-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.login-card {
	width: 100%;
	max-width: 380px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	padding: 36px 32px;
}

.logo {
	text-align: center;
	margin-bottom: 28px;
}

.logo h1 {
	font-size: 22px;
	letter-spacing: 1px;
	color: #0f172a;
}

.logo p {
	margin-top: 6px;
	font-size: 13px;
	color: #64748b;
}

.alert {
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 18px;
	text-align: center;
}

.alert-success {
	background: #dcfce7;
	color: #15803d;
	border-color: #bbf7d0;
}

.form-group {
	margin-bottom: 18px;
}

.form-group label {
	display: block;
	font-size: 13px;
	color: #334155;
	margin-bottom: 6px;
	font-weight: 600;
}

.form-control {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	outline: none;
	transition: border-color .15s ease;
}

.form-control:focus {
	border-color: #2563eb;
}

.password-field {
	position: relative;
}

.password-field .form-control {
	padding-right: 42px;
}

.password-toggle {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #94a3b8;
	display: flex;
	align-items: center;
	padding: 4px;
}

.password-toggle .icon-eye-off {
	display: none;
}

.password-toggle.is-visible .icon-eye {
	display: none;
}

.password-toggle.is-visible .icon-eye-off {
	display: block;
}

.btn-login {
	width: 100%;
	padding: 12px;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .5px;
	cursor: pointer;
	transition: background .15s ease;
}

.btn-login:hover {
	background: #1d4ed8;
}

.footer {
	margin-top: 24px;
	text-align: center;
	font-size: 11px;
	color: #94a3b8;
	line-height: 1.6;
}

/* ---------- Dashboard ---------- */

.dashboard-body {
	min-height: 100vh;
}

.dashboard-header {
	background: rgba(15, 23, 42, 0.9);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-header-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dashboard-header h1 {
	color: #fff;
	font-size: 18px;
	letter-spacing: 1px;
}

.dashboard-user {
	display: flex;
	align-items: center;
	gap: 16px;
	color: #cbd5e1;
	font-size: 13px;
}

.btn-logout {
	background: #ef4444;
	color: #fff;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	transition: background .15s ease;
}

.btn-logout:hover {
	background: #dc2626;
}

.dashboard-main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 48px 24px;
}

.sso-alert {
	max-width: 700px;
	margin: 0 auto 24px;
	background: #fef3c7;
	border: 1px solid #fde68a;
	color: #92400e;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 13px;
	text-align: center;
}

.dashboard-subtitle {
	color: #cbd5e1;
	font-size: 15px;
	margin-bottom: 28px;
	text-align: center;
}

.module-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.module-card {
	--accent: #2563eb;
	background: #ffffff;
	border-radius: 14px;
	padding: 28px 22px;
	text-decoration: none;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	border-top: 4px solid var(--accent);
	transition: transform .15s ease, box-shadow .15s ease;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.module-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.module-icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 4px;
}

.module-name {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
}

.module-desc {
	font-size: 13px;
	color: #64748b;
}

@media (max-width: 480px) {
	.login-card {
		padding: 28px 22px;
	}

	.dashboard-header-inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
}
