* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	background: #f5f7fb;
}

html:has(.login-body) {
	background: #08111f;
}

body {
	margin: 0;
	padding: 24px 20px 48px;
	color: #1f2937;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 14px;
	line-height: 1.45;
	background:
		linear-gradient(180deg, #eef3f9 0, #f8fafc 260px, #f5f7fb 100%);
	overflow-x: auto;
}

a {
	color: #075985;
	font-weight: 600;
	text-decoration: none;
}

a:hover {
	color: #0f766e;
	text-decoration: underline;
}

.top-actions {
	position: fixed;
	top: 18px;
	right: 20px;
	z-index: 20;
}

.logout-button,
.logout-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 14px;
	border: 1px solid #dc2626;
	border-radius: 7px;
	background: #dc2626;
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none !important;
	box-shadow: 0 8px 18px rgba(220, 38, 38, .18);
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.logout-button:hover,
.logout-back:hover {
	background: #b91c1c;
	box-shadow: 0 10px 22px rgba(220, 38, 38, .24);
	transform: translateY(-1px);
}

.logout-page {
	width: min(460px, calc(100vw - 40px));
	margin: 90px auto 0;
	padding: 28px;
	border: 1px solid #d7dee8;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
	text-align: center;
}

.logout-page h1 {
	margin: 0 0 10px;
	color: #0f172a;
	font-size: 24px;
}

.logout-page p {
	margin: 0 0 18px;
	color: #475569;
}

.login-body {
	min-height: 100vh;
	padding: 24px;
	background:
		linear-gradient(135deg, rgba(20, 184, 166, .18), transparent 34%),
		linear-gradient(315deg, rgba(37, 99, 235, .16), transparent 32%),
		#08111f;
	color: #e5edf7;
	overflow: hidden;
}

.login-shell {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - 48px);
}

.login-panel {
	width: min(420px, calc(100vw - 40px));
	padding: 32px;
	border: 1px solid rgba(148, 163, 184, .24);
	border-radius: 14px;
	background: rgba(15, 23, 42, .86);
	box-shadow:
		0 24px 70px rgba(0, 0, 0, .42),
		inset 0 1px 0 rgba(255, 255, 255, .08);
	backdrop-filter: blur(14px);
}

.login-brand {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0 10px;
	border: 1px solid rgba(20, 184, 166, .45);
	border-radius: 999px;
	background: rgba(20, 184, 166, .12);
	color: #67e8f9;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.login-panel h1 {
	margin: 18px 0 22px;
	color: #f8fafc;
	font-size: 30px;
	line-height: 1.1;
}

.login-form {
	display: grid;
	gap: 16px;
}

.login-form label {
	display: grid;
	gap: 7px;
	margin: 0;
	color: #cbd5e1;
	font-size: 13px;
	text-align: left;
}

.login-form input[type="text"],
.login-form input[type="password"] {
	width: 100%;
	height: 44px;
	border-color: rgba(148, 163, 184, .35);
	background: rgba(15, 23, 42, .78);
	color: #f8fafc;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
	border-color: #22d3ee;
	box-shadow: 0 0 0 3px rgba(34, 211, 238, .16);
}

.login-form input[type="submit"] {
	width: 100%;
	height: 44px;
	margin-top: 4px;
	border-color: #14b8a6;
	background: #14b8a6;
	box-shadow: 0 12px 28px rgba(20, 184, 166, .24);
}

.login-form input[type="submit"]:hover {
	background: #0f766e;
}

.login-error {
	margin: -8px 0 16px;
	padding: 10px 12px;
	border: 1px solid rgba(248, 113, 113, .42);
	border-radius: 8px;
	background: rgba(127, 29, 29, .32);
	color: #fecaca;
	font-weight: 700;
}

.logout-panel {
	text-align: center;
}

.logout-text {
	margin: -8px 0 20px;
	color: #cbd5e1;
}

div[align="center"] img {
	display: block;
	width: min(500px, calc(100vw - 40px));
	height: 148px;
	object-fit: cover;
	border: 0 !important;
	border-radius: 10px 10px 0 0;
	box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

div[align="center"][style*="courier"] {
	width: 100%;
	font-family: Arial, Helvetica, sans-serif !important;
}

div[style*="width:500px"] {
	width: min(500px, calc(100vw - 40px)) !important;
	margin: 0 auto !important;
	padding: 22px 28px 20px !important;
	border: 1px solid #d7dee8 !important;
	border-radius: 10px !important;
	background: #ffffff !important;
	box-shadow: 0 18px 40px rgba(15, 23, 42, .12) !important;
	color: #334155;
}

div[align="center"]:has(img[src*="new-header"]) + div[align="center"] > div[style*="width:500px"] {
	border-radius: 0 0 10px 10px !important;
}

div[style*="width:500px"] form {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

input,
select {
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 13px;
}

input[type="text"],
select {
	height: 34px;
	padding: 7px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 7px;
	background: #fff;
	color: #0f172a;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input[type="text"]:focus,
select:focus {
	border-color: #0891b2;
	box-shadow: 0 0 0 3px rgba(8, 145, 178, .16);
}

input[readonly] {
	background: #eef2f7 !important;
	color: #475569;
}

div[style*="width:500px"] input[type="text"] {
	width: min(260px, 100%) !important;
}

#access_code_new {
	width: 150px !important;
}

input[type="checkbox"],
input[type="radio"] {
	width: 15px;
	height: 15px;
	margin: 0 6px;
	vertical-align: -2px;
	accent-color: #0f766e;
}

input[type="button"],
input[type="submit"] {
	height: 34px;
	padding: 0 13px;
	border: 1px solid #0f766e;
	border-radius: 7px;
	background: #0f766e;
	color: #ffffff;
	font-weight: 700;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

input[type="button"]:hover,
input[type="submit"]:hover {
	background: #115e59;
	box-shadow: 0 4px 12px rgba(15, 23, 42, .16);
	transform: translateY(-1px);
}

input[type="button"]:active,
input[type="submit"]:active {
	transform: translateY(0);
}

input[value="HAPUS"] {
	border-color: #dc2626 !important;
	background: #dc2626 !important;
}

input[value="HAPUS"]:hover {
	background: #b91c1c !important;
}

input[value="COPY LINK"],
input[value="GENERATE"],
input[value="GEN"],
input[value*="VIEW"],
input[value*="LIST"] {
	border-color: #2563eb !important;
	background: #2563eb !important;
}

input[value="COPY LINK"]:hover,
input[value="GENERATE"]:hover,
input[value="GEN"]:hover,
input[value*="VIEW"]:hover,
input[value*="LIST"]:hover {
	background: #1d4ed8 !important;
}

table {
	width: max(1180px, 100%) !important;
	margin: 20px auto 0;
	border: 0 !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	font-family: Arial, Helvetica, sans-serif !important;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 16px 34px rgba(15, 23, 42, .1);
	overflow: hidden;
}

tr[style*="background-color:#096"],
tr[style*="background-color:silver"] {
	height: 44px !important;
	background: #0f766e !important;
	color: #ffffff;
	font-size: 13px !important;
	font-weight: 800 !important;
	text-transform: uppercase;
	letter-spacing: .03em;
}

tr[style*="background-color:#CF9"],
tr[style*="background-color:skyblue"] {
	height: auto !important;
	background: #ffffff !important;
	color: #1f2937;
	font-size: 13px !important;
	font-weight: 400 !important;
}

tr[style*="background-color:#CF9"]:nth-of-type(even),
tr[style*="background-color:skyblue"]:nth-of-type(even) {
	background: #f8fafc !important;
}

tr[style*="background-color:#CF9"]:hover,
tr[style*="background-color:skyblue"]:hover {
	background: #ecfeff !important;
}

td {
	padding: 8px 10px;
	border: 0 !important;
	border-bottom: 1px solid #e2e8f0 !important;
	vertical-align: middle;
}

tr:last-child td {
	border-bottom: 0 !important;
}

table input[type="text"],
table select {
	height: 30px;
	padding: 5px 8px;
	border-radius: 6px;
	font-size: 12px;
}

table input[type="button"],
table input[type="submit"] {
	height: 30px;
	padding: 0 10px;
	border-radius: 6px;
	font-size: 12px;
}

table input[value="GEN"] {
	margin-left: 6px;
	padding: 0 9px;
}

label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 4px 8px;
	color: #334155;
	font-weight: 700;
}

@media (max-width: 760px) {
	body {
		padding: 14px 10px 32px;
	}

	div[align="center"] img,
	div[style*="width:500px"] {
		width: calc(100vw - 20px) !important;
	}

	div[style*="width:500px"] {
		padding: 18px 16px !important;
	}

	div[style*="width:500px"] input[type="text"] {
		display: block;
		width: 100% !important;
		margin: 7px auto 0;
	}

	input[type="button"],
	input[type="submit"] {
		margin-top: 6px;
	}
}
