.decree-otp {
	max-width: 380px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: #111827;
	text-align: start;
}

/* LTR fields (email/password/code) keep their content left-aligned even inside
   an RTL widget, since email addresses and codes read left-to-right. */
.decree-otp__input[dir="ltr"] {
	text-align: left;
}

.decree-otp[dir="rtl"] .decree-otp__input--code {
	text-align: center;
}

.decree-otp__form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.decree-otp__step {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* The `hidden` attribute must win over the display rule above, otherwise all
   three modes render at once. */
.decree-otp__step[hidden] {
	display: none;
}

.decree-otp__label {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
}

.decree-otp__input {
	width: 100%;
	padding: 12px 14px;
	font-size: 16px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	box-sizing: border-box;
	background: #fff;
}

.decree-otp__input:focus {
	outline: none;
	border-color: #E4572E;
	box-shadow: 0 0 0 3px rgba( 228, 87, 46, 0.15 );
}

.decree-otp__input--code {
	letter-spacing: 8px;
	text-align: center;
	font-size: 22px;
	font-family: 'Courier New', monospace;
}

.decree-otp__submit {
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: #E4572E;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.decree-otp__submit:hover {
	background: #c8431d;
}

/* Logout button: an inline, auto-width link rather than a full-width form CTA. */
.decree-otp__submit--logout {
	display: inline-block;
	width: auto;
	text-decoration: none;
	text-align: center;
}

.decree-otp__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.decree-otp__intro {
	margin: 0 0 4px;
	font-size: 14px;
	color: #374151;
	line-height: 1.5;
}

.decree-otp__sent {
	margin: 0 0 4px;
	font-size: 14px;
	color: #374151;
}

.decree-otp__sent strong,
.decree-otp__dest {
	color: #111827;
	font-weight: 600;
}

.decree-otp__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	margin-top: 2px;
}

.decree-otp__link {
	background: none;
	border: 0;
	color: #6b7280;
	font-size: 13px;
	cursor: pointer;
	padding: 4px;
	text-decoration: underline;
}

.decree-otp__link:disabled,
.decree-otp__link.is-disabled {
	color: #9ca3af;
	cursor: default;
	text-decoration: none;
	pointer-events: none;
}

.decree-otp__message {
	margin: 4px 0 0;
	font-size: 14px;
	min-height: 1.2em;
}

.decree-otp__message.is-error {
	color: #b91c1c;
}

.decree-otp__message.is-success {
	color: #15803d;
}

.decree-otp__notice {
	font-size: 15px;
}
