/**
 * VIMM OTP modal styles. Scoped under .vimm-otp-overlay to avoid leakage.
 */

body.vimm-otp-open {
	overflow: hidden;
}

.vimm-otp-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba( 17, 24, 39, .65 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	-webkit-font-smoothing: antialiased;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	animation: vimm-otp-fade 160ms ease-out;
}

@keyframes vimm-otp-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.vimm-otp-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 14px;
	padding: 28px 24px 24px;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, .25 );
	animation: vimm-otp-pop 200ms cubic-bezier( .2, .9, .3, 1.2 );
}

@keyframes vimm-otp-pop {
	from { transform: scale( .96 ); opacity: 0; }
	to   { transform: scale( 1 );    opacity: 1; }
}

.vimm-otp-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 8px;
}

.vimm-otp-close:hover {
	background: #f3f4f6;
	color: #111827;
}

.vimm-otp-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
	color: #111827;
	line-height: 1.3;
}

.vimm-otp-subtitle {
	margin: 0 0 20px;
	font-size: 14px;
	color: #4b5563;
	line-height: 1.5;
}

.vimm-otp-subtitle strong {
	color: #111827;
	font-weight: 600;
	word-break: break-all;
}

.vimm-otp-input {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 8px;
	text-align: center;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	color: #111827;
	background: #f9fafb;
	outline: none;
	transition: border-color 120ms ease, background 120ms ease;
	-moz-appearance: textfield;
}

.vimm-otp-input::-webkit-outer-spin-button,
.vimm-otp-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.vimm-otp-input:focus {
	border-color: var(--vimm-magenta, #d6256a);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(var(--vimm-magenta-rgb, 214,37,106), 0.10);
}

.vimm-otp-msg {
	min-height: 20px;
	margin: 10px 0 14px;
	font-size: 13px;
	line-height: 1.4;
	color: #6b7280;
}

.vimm-otp-msg.is-error   { color: #b91c1c; }
.vimm-otp-msg.is-success { color: #047857; }
.vimm-otp-msg.is-info    { color: var(--vimm-navy, #2d3149); }

.vimm-otp-submit,
.vimm-otp-resend {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 10px;
	cursor: pointer;
	border: 0;
	transition: background 120ms ease, opacity 120ms ease;
}

.vimm-otp-submit {
	background: var(--vimm-magenta, #d6256a);
	color: #fff;
	margin-bottom: 8px;
}

.vimm-otp-submit:hover  { background: var(--vimm-magenta-hover, #b91d59); }
.vimm-otp-submit:disabled,
.vimm-otp-resend:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.vimm-otp-resend {
	background: transparent;
	color: #4b5563;
	border: 1px solid #e5e7eb;
}

.vimm-otp-resend:hover { background: #f9fafb; color: #111827; }

@media ( max-width: 480px ) {
	.vimm-otp-modal { padding: 22px 18px 18px; border-radius: 12px; }
	.vimm-otp-title { font-size: 18px; }
	.vimm-otp-input { font-size: 20px; letter-spacing: 6px; }
}
