/*
 * The code row that opens under the ID number (assets/otp-inline.js, 22/11).
 * It takes the class of the form it opens under, so the header panel's field
 * styles (.login-sms-preview) already apply; this adds what the row has and
 * the ID form did not.
 */
.gb-otp-inline {
	margin-block-start: 12px;
}

.gb-otp-inline .gb-otp-inline__hint {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.4;
}

.gb-otp-inline__label {
	display: block;
	margin: 0 0 9px;
	font-size: 14px;
}

.gb-otp-inline__label input {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.gb-otp-inline__submit {
	display: flex;
	width: 100%;
	min-height: 41px;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: var(--gboneai-radius-pill, 999px);
	background: var(--gboneai-color-dark, #1b2b50);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	cursor: pointer;
}

.gb-otp-inline__resend {
	display: block;
	margin: 8px auto 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-family: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}

.gb-otp-inline__submit:focus-visible,
.gb-otp-inline__resend:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.gb-otp-inline__submit:disabled,
.gb-otp-inline__resend:disabled,
form[aria-busy="true"] button {
	opacity: 0.6;
	cursor: progress;
}

form p.gb-otp-inline__error {
	margin: 8px 0 0;
	padding: 6px 10px;
	border-radius: 8px;
	background: #fff;
	color: #b00020;
	font-size: 14px;
	line-height: 1.4;
}

form p.gb-otp-inline__error[hidden] {
	display: none;
}

/*
 * The header panel has the drawn fixed height, its password part placed
 * absolutely. While the code row is open it takes that room (assets/otp-inline.js).
 */
.header-login-panel__inner.gb-otp-coding .login-separator,
.header-login-panel__inner.gb-otp-coding #loginform,
.header-login-panel__inner.gb-otp-coding .login-lost-password {
	display: none;
}
