/**
 * Frontend styles for Simple Site Password.
 */

html,
body.ssp-gate {
	min-height: 100%;
	margin: 0;
}

body.ssp-gate {
	--ssp-accent: #d1fe17;
	--ssp-dark: #0d0e10;
	--ssp-surface: #111214;
	--ssp-text: #ffffff;
	--ssp-text-soft: rgba(255, 255, 255, 0.78);
	--ssp-muted: #94a3b8;
	--ssp-border: rgba(255, 255, 255, 0.09);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
	color: var(--ssp-text);
	background: var(--ssp-dark);
}

body.ssp-gate,
body.ssp-gate * {
	box-sizing: border-box;
}

body.ssp-gate input,
body.ssp-gate button {
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
}

body.ssp-gate .ssp-gate-shell {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 24px;
	box-sizing: border-box;
}

body.ssp-gate .ssp-gate-card {
	width: 100%;
	max-width: 430px;
	padding: 34px;
	border: 1px solid var(--ssp-border);
	border-radius: 20px;
	background: rgba(17, 18, 20, 0.92);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
	box-sizing: border-box;
}

body.ssp-gate .ssp-gate-brand {
	margin-bottom: 14px;
	color: var(--ssp-accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

body.ssp-gate .ssp-gate-title {
	margin: 0 0 10px;
	color: var(--ssp-text);
	font-size: 30px;
	font-weight: 820;
	letter-spacing: -0.045em;
	line-height: 1.1;
}

body.ssp-gate .ssp-gate-description {
	margin: 0 0 22px;
	color: var(--ssp-muted);
	font-size: 15px;
	line-height: 1.6;
}

body.ssp-gate .ssp-gate-error {
	margin-bottom: 16px;
	padding: 12px 14px;
	border: 1px solid rgba(239, 68, 68, 0.25);
	border-radius: 10px;
	background: rgba(239, 68, 68, 0.10);
	color: #fca5a5;
	font-size: 13px;
}

body.ssp-gate .ssp-gate-label {
	display: block;
	margin-bottom: 8px;
	color: var(--ssp-text-soft);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

body.ssp-gate .ssp-gate-input {
	display: block;
	width: 100%;
	min-height: 46px;
	margin-bottom: 14px;
	padding: 12px 14px;
	border: 1px solid var(--ssp-border) !important;
	border-radius: 12px !important;
	background: rgba(255, 255, 255, 0.055) !important;
	color: var(--ssp-text) !important;
	font-size: 16px !important;
	line-height: 1.3 !important;
	outline: none;
	box-sizing: border-box;
	box-shadow: none;
}

body.ssp-gate .ssp-gate-input:focus {
	border-color: rgba(209, 254, 23, 0.48) !important;
	box-shadow: 0 0 0 4px rgba(209, 254, 23, 0.10) !important;
}

body.ssp-gate .ssp-gate-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	padding: 12px 18px;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--ssp-accent) !important;
	color: #0d0e10 !important;
	font-size: 14px !important;
	font-weight: 850 !important;
	line-height: 1.2 !important;
	cursor: pointer;
	text-decoration: none !important;
	box-shadow: 0 12px 30px rgba(209, 254, 23, 0.24) !important;
}

body.ssp-gate .ssp-gate-button:hover,
body.ssp-gate .ssp-gate-button:focus {
	filter: brightness(0.96);
}

body.ssp-gate.ssp-template-minimal {
	--ssp-accent: #111827;
	--ssp-dark: #f3f4f6;
	--ssp-surface: #ffffff;
	--ssp-text: #111827;
	--ssp-text-soft: rgba(17, 24, 39, 0.72);
	--ssp-muted: #4b5563;
	--ssp-border: rgba(17, 24, 39, 0.10);
	background:
		radial-gradient(circle at top left, rgba(17, 24, 39, 0.06), transparent 32%),
		#f3f4f6;
}

body.ssp-gate.ssp-template-minimal .ssp-gate-card {
	background: #ffffff;
	box-shadow: 0 24px 80px rgba(17, 24, 39, 0.12);
}

body.ssp-gate.ssp-template-minimal .ssp-gate-brand {
	color: #4b5563;
}

body.ssp-gate.ssp-template-minimal .ssp-gate-button {
	background: #111827 !important;
	color: #ffffff !important;
	box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18) !important;
}

body.ssp-gate.ssp-template-minimal .ssp-gate-input {
	background: #f9fafb !important;
	color: #111827 !important;
}

body.ssp-gate.ssp-template-dark {
	background:
		radial-gradient(circle at top left, rgba(209, 254, 23, 0.10), transparent 34%),
		#0d0e10;
}

body.ssp-gate.ssp-template-gradient {
	background:
		radial-gradient(circle at 20% 10%, rgba(209, 254, 23, 0.30), transparent 24%),
		linear-gradient(135deg, #0d0e10 0%, #182018 48%, #263112 100%);
}

body.ssp-gate.ssp-template-gradient .ssp-gate-card {
	background: rgba(13, 14, 16, 0.84);
	backdrop-filter: blur(16px);
}

@media (max-width: 520px) {
	body.ssp-gate .ssp-gate-shell {
		padding: 16px;
	}

	body.ssp-gate .ssp-gate-card {
		padding: 26px;
		border-radius: 16px;
	}

	body.ssp-gate .ssp-gate-title {
		font-size: 26px;
	}
}
