/*
 * Platform-native login/logout styles. Same defensive approach as the
 * assessment and dashboard widgets: every element gets an explicit
 * background/color so this looks correct regardless of the host theme.
 */

#ug-login-root {
	max-width: 420px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#ug-login-root * {
	box-sizing: border-box;
}

#ug-login-root .ug-login-card {
	background: #ffffff !important;
	color: #1a1a1a !important;
	border-radius: 10px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
	padding: 28px 24px;
}

#ug-login-root .ug-login-title {
	font-size: 1.3rem;
	margin: 0 0 16px;
	color: #1a1a1a !important;
}

#ug-login-root .ug-login-error {
	background: #fdecea !important;
	color: #a5303a !important;
	border-left: 3px solid #a5303a;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 0.9rem;
	margin-bottom: 16px;
}

#ug-login-root .ug-login-message {
	color: #444444 !important;
	margin-bottom: 20px;
}

#ug-login-root .ug-login-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

#ug-login-root .ug-login-label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #1a1a1a !important;
}

#ug-login-root .ug-login-label input[type="text"],
#ug-login-root .ug-login-label input[type="password"] {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: normal;
	background: #ffffff !important;
	color: #1a1a1a !important;
}

#ug-login-root .ug-login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: #444444 !important;
}

#ug-login-root .ug-login-btn {
	display: inline-block;
	text-align: center;
	padding: 11px 20px;
	font-size: 1rem;
	border-radius: 6px;
	border: 1px solid #ccc;
	background: #ffffff !important;
	color: #1a1a1a !important;
	cursor: pointer;
	text-decoration: none;
}

#ug-login-root .ug-login-btn-primary {
	background: #1d4ed8 !important;
	color: #ffffff !important;
	border-color: #1d4ed8;
	font-weight: 600;
}

#ug-login-root .ug-login-btn-primary:hover {
	background: #1a3fb0 !important;
}

#ug-login-root .ug-login-lostpassword {
	text-align: center;
	margin-top: 16px;
	font-size: 0.85rem;
}

#ug-login-root .ug-login-lostpassword a,
#ug-login-root .ug-login-logout-link {
	color: #1d4ed8 !important;
}

#ug-login-root .ug-login-logout {
	text-align: center;
	margin-top: 16px;
	font-size: 0.9rem;
}

/* Added for [ug_invitation]'s Screen 2 (Sign In / Create My Account choice)
   — the only new layout need beyond what [ug_join]'s single-form flow
   already used every other rule above for. */
#ug-login-root .ug-invitation-choice-buttons {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}

#ug-login-root .ug-invitation-choice-buttons .ug-login-btn {
	flex: 1;
}
