/* Style the independent login screen across viewport sizes. */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	place-items: center;
	padding: 32px 16px;
	background: var(--connect-auth-background, #edf1f5);
	color: #17232b;
	font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.connect-auth-background {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -1;
}

.connect-auth-shell {
	width: 100%;
	max-width: 460px;
}

.connect-auth-card {
	width: 100%;
	max-width: 460px;
	padding: 36px;
	border: 1px solid #dce3e7;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 16px 48px #17232b14;
}

.connect-auth-language {
	display: flex;
	justify-content: center;
	margin-top: 10px;
	color: #5b6971;
	font-size: 14px;
}

.connect-auth-language-controls {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.connect-auth-language-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 4px 22px 4px 7px;
	cursor: pointer;
}

.connect-auth-language-label svg {
	width: 14px;
	height: 14px;
	flex: none;
	opacity: .7;
}

.connect-auth-language-controls:focus-within {
	outline: 3px solid #346fce;
	outline-offset: 3px;
	border-radius: 3px;
}

/* Use a quiet chevron instead of the platform's boxed select styling. */
.connect-auth-language-controls::after {
	position: absolute;
	right: 7px;
	top: 50%;
	width: 5px;
	height: 5px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	content: "";
	pointer-events: none;
	transform: translateY(-70%) rotate(45deg);
	opacity: .6;
}

select, input, button {
	font: inherit;
}

/* Keep the native dropdown over the fixed, recognizable language label. */
.connect-auth-language select {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	font-size: inherit;
	cursor: pointer;
}

.connect-auth-language option {
	background: #fff;
	color: #17232b;
}

button {
	cursor: pointer;
}

.connect-auth-logo {
	display: block;
	max-width: 200px;
	max-height: 88px;
	object-fit: contain;
	margin-bottom: 26px;
}

h1 {
	font-size: 30px;
	line-height: 1.2;
	letter-spacing: -.02em;
	margin: 0 0 14px;
	overflow-wrap: anywhere;
}

.connect-auth-intro {
	margin: 0 0 26px;
	color: #4d5c66;
}

.connect-auth-message {
	margin: 0 0 24px;
	padding: 12px 14px;
	background: #f5f1e9;
	border: 0;
	border-radius: 4px;
	overflow-wrap: anywhere;
}

.connect-auth-login > label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.connect-auth-login > input[type="password"], .connect-auth-login > input[type="text"] {
	display: block;
	width: 100%;
	min-height: 48px;
	border: 1px solid #85959e;
	border-radius: 7px;
	padding: 10px 12px;
}

.connect-auth-show {
	display: block;
	padding: 8px 0;
	margin-top: 2px;
	border: 0;
	background: transparent;
	color: #354b58;
	text-decoration: underline;
	font-size: 14px;
}

.connect-auth-show[hidden] {
	display: none;
}

.connect-auth-submit {
	width: 100%;
	min-height: 48px;
	padding: 10px 16px;
	margin-top: 20px;
	border: 0;
	border-radius: 7px;
	background: var(--connect-auth-button, #125b50);
	color: var(--connect-auth-button-text, #fff);
	font-weight: 600;
}

.connect-auth-submit:hover {
	filter: brightness(.93);
}

:focus-visible {
	outline: 3px solid #346fce;
	outline-offset: 3px;
}

:disabled {
	opacity: .6;
	cursor: not-allowed;
}

/* Keep access guidance separate from the primary sign-in action. */
.connect-auth-access {
	margin-top: 28px;
	padding: 18px;
	border-radius: 8px;
	background: #f3f5f6;
	overflow-wrap: anywhere;
}

.connect-auth-access h2 {
	font-size: 18px;
	line-height: 1.4;
	margin: 0 0 8px;
}

.connect-auth-access p {
	margin: 0 0 10px;
	color: #4d5c66;
}

.connect-auth-access a {
	color: #354b58;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.connect-auth-privacy {
	font-size: 14px;
	line-height: 1.6;
	color: #5b6971;
	margin: 24px 0 0;
}

@media (max-width: 380px) {
	.connect-auth-card {
		padding: 24px;
	}
}

/* Keep both confirmation choices clear without introducing theme dependencies. */
.connect-auth-disclaimer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.connect-auth-disclaimer-actions button {
	flex: 1 1 120px;
	width: auto;
	min-height: 48px;
	margin: 0;
	padding: 10px 16px;
	border-radius: 7px;
}

.connect-auth-decline {
	border: 1px solid #85959e;
	background: #f3f5f6;
	color: #17232b;
	font-weight: 600;
}
