.comicbox-form {
	box-sizing: border-box;
	width: 100%;
	max-width: 42rem;
	padding: clamp(1rem, 4vw, 2rem);
	border: 1px solid #dcdcde;
	border-radius: 0.5rem;
	background: #fff;
	color: #1d2327;
}

.comicbox-form *,
.comicbox-form *::before,
.comicbox-form *::after {
	box-sizing: inherit;
}

.comicbox-form__field {
	margin: 0 0 1.25rem;
}

.comicbox-form__label {
	display: block;
	margin: 0 0 0.4rem;
	font-weight: 600;
}

.comicbox-form__input {
	display: block;
	width: 100%;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.65rem 0.75rem;
	border: 1px solid #8c8f94;
	border-radius: 0.25rem;
	background: #fff;
	color: #1d2327;
	font: inherit;
}

.comicbox-form__input:focus {
	border-color: #2271b1;
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

.comicbox-form__help {
	display: block;
	margin-top: 0.35rem;
	color: #50575e;
	font-size: 0.875rem;
}

.comicbox-form__plan {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.85rem 1rem;
	border-left: 4px solid #2271b1;
	background: #f0f6fc;
}

.comicbox-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1.1rem;
	border: 0;
	border-radius: 0.25rem;
	background: #2271b1;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.comicbox-form__submit:hover,
.comicbox-form__submit:focus-visible {
	background: #135e96;
}

.comicbox-form__submit:disabled {
	cursor: wait;
	opacity: 0.7;
}

.comicbox-form__spinner {
	display: none;
	width: 1rem;
	height: 1rem;
	margin-left: 0.6rem;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: comicbox-spin 0.8s linear infinite;
}

.comicbox-form--loading .comicbox-form__spinner {
	display: inline-block;
}

.comicbox-form__message {
	margin: 0 0 1.25rem;
	padding: 0.8rem 1rem;
	border-left: 4px solid;
	border-radius: 0.2rem;
}

.comicbox-form__message:focus {
	outline: none;
}

.comicbox-form__message--success {
	border-color: #00a32a;
	background: #edfaef;
}

.comicbox-form__message--error {
	border-color: #d63638;
	background: #fcf0f1;
}

.comicbox-form__message--warning {
	border-color: #dba617;
	background: #fcf9e8;
}

.comicbox-form__password {
	display: block;
	margin-top: 0.5rem;
	word-break: break-all;
}

.comicbox-form__trap {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@keyframes comicbox-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
	.comicbox-form__submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.comicbox-form__spinner {
		animation-duration: 1.6s;
	}
}
