.twim-auth-wrap {
	box-sizing: border-box;
	width: 100%;
	padding: 32px 16px;
}

body.twim-page .wp-block-post-title {
	display: none;
}

.twim-auth-wrap *,
.twim-auth-wrap *::before,
.twim-auth-wrap *::after {
	box-sizing: border-box;
}

.twim-card {
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	padding: 28px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
	color: #1f2937;
	box-shadow: 0 12px 36px rgba(15, 23, 42, .08);
	font-family: inherit;
}

.twim-card h1 {
	margin: 0 0 20px;
	font-size: 1.7rem;
	line-height: 1.25;
}

.twim-card h2 {
	margin: 28px 0 16px;
	font-size: 1.2rem;
}

.twim-logo {
	display: block;
	max-width: 180px;
	max-height: 88px;
	margin: 0 auto 16px;
	object-fit: contain;
}

.twim-platform-name {
	text-align: center;
	font-weight: 600;
}

.twim-form {
	display: grid;
	gap: 10px;
}

.twim-form > label {
	margin-top: 6px;
	font-weight: 600;
}

.twim-form input[type="text"],
.twim-form input[type="email"],
.twim-form input[type="tel"],
.twim-form input[type="password"] {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 7px;
	background: #fff;
	color: #111827;
	font: inherit;
}

.twim-password-field {
	position: relative;
}

.twim-password-field input {
	padding-right: 68px !important;
}

.twim-password-toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	min-height: 36px;
	padding: 4px 8px;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	color: #334155;
	cursor: pointer;
}

.twim-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
}

.twim-checkbox input {
	width: 18px;
	height: 18px;
}

.twim-button,
.twim-auth-wrap a.twim-button,
.twim-auth-item > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid #334155;
	border-radius: 7px;
	background: #334155;
	color: #fff !important;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
}

.twim-auth-item {
	margin-inline-start: 10px;
}

.twim-auth-item .wp-block-navigation-item__content {
	padding: 9px 16px;
}

.twim-submit {
	width: 100%;
	margin-top: 8px;
}

.twim-notice {
	margin: 0 0 16px;
	padding: 12px;
	border-radius: 7px;
}

.twim-notice-error {
	background: #fef2f2;
	color: #991b1b;
}

.twim-notice-info {
	background: #eff6ff;
	color: #1e3a8a;
}

.twim-notice-success {
	background: #f0fdf4;
	color: #166534;
}

.twim-footer,
.twim-contact {
	margin: 20px 0 0;
	text-align: center;
}

.twim-dashboard {
	max-width: 720px;
}

.twim-logout {
	display: inline-block;
	margin-top: 24px;
}

.twim-password-section > summary {
	min-height: 44px;
	padding: 10px 0;
	font-weight: 600;
	cursor: pointer;
}

.twim-password-section:not([open]) > form {
	display: none;
}

.twim-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@media (max-width: 520px) {
	.twim-card {
		padding: 22px 18px;
	}
}
