/* ================================================
   Anied SMS - OTP Login Form (Dark Theme) v6
   ================================================ */

.anied-otp-wrap{
	--otp-bg:         #0c0a09;
	--otp-card:       #141210;
	--otp-input-bg:   #0c0a09;
	--otp-brand:      #00A2FF;
	--otp-brand-dim:  rgba(0,162,255,.12);
	--otp-brand-glow: rgba(0,162,255,.3);
	--otp-text:       #F2F2F2;
	--otp-text-muted: #9a9590;
	--otp-border:     rgba(242,242,242,.08);
	--otp-danger:     #ff4d4d;
	--otp-success:    #4caf50;
	--otp-radius:     14px;
	--otp-font:       'Vazirmatn', Tahoma, sans-serif;

	max-width: 440px;
	margin: 40px auto;
	direction: rtl;
	font-family: var(--otp-font);
	padding: 0 16px;
}

.anied-otp-wrap * { box-sizing: border-box; }

/* Container card */
.anied-otp-card {
	background: var(--otp-card);
	border: 1px solid var(--otp-border);
	border-radius: var(--otp-radius);
	padding: 32px 26px;
	box-shadow: 0 8px 32px rgba(0,0,0,.3);
	position: relative;
	overflow: hidden;
	transition: transform .3s;
}

/* Titles */
.anied-otp-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--otp-text);
	margin: 0 0 8px;
	text-align: center;
}
.anied-otp-title-code {
	font-size: 18px;
	font-weight: 800;
}
.anied-otp-subtitle {
	font-size: 13px;
	color: var(--otp-text-muted);
	margin: 0 0 24px;
	line-height: 1.9;
	text-align: center;
}
.anied-otp-phone-display {
	color: var(--otp-brand);
	font-weight: 700;
	display: inline-block;
	direction: ltr;
}

/* Phone input (no border, only dark bg) */
.anied-otp-input {
	width: 100%;
	background: var(--otp-input-bg);
	border: none;
	border-radius: 10px;
	padding: 14px;
	color: var(--otp-text);
	font-family: var(--otp-font);
	font-size: 15px;
	outline: none;
}
.anied-otp-input:focus { outline: none; box-shadow: none; }
#anied-otp-phone {
	direction: ltr;
	text-align: center;
	letter-spacing: 2px;
}

/* Name fields row */
.anied-otp-name-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 12px;
}
.anied-otp-name-fields .anied-otp-input {
	text-align: right;
	direction: rtl;
	letter-spacing: 0;
}

/* Main button — NO HOVER, NO OUTLINE, NO SHADOW */
.anied-otp-btn {
	width: 100%;
	padding: 14px;
	font-size: 16px;
	font-weight: 700;
	font-family: var(--otp-font);
	background: var(--otp-brand);
	color: #ffffff !important;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	margin-top: 16px;
	display: block;
	text-align: center;
	line-height: 1.4;
	outline: none !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
.anied-otp-btn:hover,
.anied-otp-btn:focus,
.anied-otp-btn:active,
.anied-otp-btn:focus-visible {
	background: var(--otp-brand) !important;
	color: #ffffff !important;
	opacity: 1 !important;
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
	transform: none !important;
}
.anied-otp-btn:disabled {
	background: var(--otp-text-muted) !important;
	cursor: not-allowed;
	opacity: .6 !important;
}

/* Terms text */
.anied-otp-terms {
	font-size: 11.5px;
	color: var(--otp-text-muted);
	text-align: center;
	margin: 18px 0 0;
	line-height: 2;
}
.anied-otp-terms a { color: var(--otp-brand); text-decoration: none; }
.anied-otp-terms a:hover { text-decoration: underline; }

/* ================================================
   OTP Code Boxes
   ================================================ */
.anied-otp-code-boxes {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin: 8px 0 16px;
	direction: ltr;
}

.anied-otp-box {
	width: 56px;
	height: 62px;
	background: var(--otp-input-bg);
	border: 2px solid var(--otp-border);
	border-radius: 12px;
	color: var(--otp-text);
	font-family: var(--otp-font);
	font-size: 24px;
	font-weight: 700;
	text-align: center;
	padding: 0;
	outline: none;
	transition: border-color .2s, box-shadow .2s, background .2s;
	caret-color: var(--otp-brand);
	line-height: 1;
	vertical-align: middle;
}
.anied-otp-box:focus {
	border-color: var(--otp-brand);
	box-shadow: 0 0 0 3px var(--otp-brand-dim);
	background: rgba(0,162,255,.04);
}
.anied-otp-box.filled {
	border-color: var(--otp-brand-glow);
	background: rgba(0,162,255,.04);
}
.anied-otp-box.valid {
	border-color: var(--otp-success);
	box-shadow: 0 0 0 3px rgba(76,175,80,.15);
	background: rgba(76,175,80,.06);
}
.anied-otp-box.invalid {
	border-color: var(--otp-danger);
	box-shadow: 0 0 0 3px rgba(255,77,77,.15);
	background: rgba(255,77,77,.06);
}

/* Sequential green animation */
@keyframes anied-otp-pulse-green {
	0%   { transform: scale(1);   }
	50%  { transform: scale(1.08);}
	100% { transform: scale(1);   }
}
.anied-otp-box.valid { animation: anied-otp-pulse-green .35s ease; }

/* Shake animation on invalid code */
@keyframes anied-otp-shake {
	0%, 100% { transform: translateX(0); }
	15%      { transform: translateX(-8px); }
	30%      { transform: translateX(8px); }
	45%      { transform: translateX(-6px); }
	60%      { transform: translateX(6px); }
	75%      { transform: translateX(-3px); }
	90%      { transform: translateX(3px); }
}
.anied-otp-card.shake { animation: anied-otp-shake .5s ease; }

/* Code status message (below boxes) */
.anied-otp-code-status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 600;
	margin: 12px 0 16px;
	animation: anied-otp-fade-in .3s ease;
}
@keyframes anied-otp-fade-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}
.anied-otp-code-status.success {
	background: rgba(76,175,80,.1);
	color: var(--otp-success);
	border: 1px solid rgba(76,175,80,.25);
}
.anied-otp-code-status.error {
	background: rgba(255,77,77,.1);
	color: var(--otp-danger);
	border: 1px solid rgba(255,77,77,.25);
}
.anied-otp-status-icon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 900;
	flex-shrink: 0;
}
.anied-otp-code-status.success .anied-otp-status-icon {
	background: var(--otp-success);
	color: #fff;
}
.anied-otp-code-status.success .anied-otp-status-icon::before { content: '✓'; }
.anied-otp-code-status.error .anied-otp-status-icon {
	background: var(--otp-danger);
	color: #fff;
}
.anied-otp-code-status.error .anied-otp-status-icon::before { content: '✕'; }

/* Actions row below code boxes — no hover */
.anied-otp-code-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 14px 0 4px;
	font-size: 12.5px;
}
.anied-otp-code-actions a,
.anied-otp-code-actions a:hover,
.anied-otp-code-actions a:focus,
.anied-otp-code-actions a:visited,
.anied-otp-code-actions a:active {
	color: rgba(242,242,242,.6) !important;
	text-decoration: none !important;
	opacity: 1 !important;
	outline: none !important;
}
.anied-otp-change-number span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	direction: rtl;
}
.anied-otp-phone-mini {
	direction: ltr;
	display: inline-block;
	font-family: var(--otp-font);
}
.anied-otp-resend-timer {
	color: rgba(242,242,242,.6) !important;
}

/* General inline messages */
.anied-otp-msg {
	padding: 10px 14px;
	border-radius: 9px;
	font-size: 12.5px;
	margin-bottom: 16px;
	text-align: center;
}
.anied-otp-msg.error {
	background: rgba(255,77,77,.1);
	color: var(--otp-danger);
	border: 1px solid rgba(255,77,77,.25);
}
.anied-otp-msg.success {
	background: rgba(76,175,80,.1);
	color: var(--otp-success);
	border: 1px solid rgba(76,175,80,.25);
}

/* Logged-in state */
.anied-otp-loggedin {
	max-width: 440px;
	margin: 40px auto;
	padding: 20px;
	background: #141210;
	border: 1px solid rgba(76,175,80,.25);
	border-radius: 12px;
	color: #81c784;
	text-align: center;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	direction: rtl;
}
.anied-otp-loggedin a {
	color: #ff4d4d;
	text-decoration: none;
	font-weight: 600;
}

/* Small responsive */
@media (max-width: 480px) {
	.anied-otp-box {
		width: 48px;
		height: 56px;
		font-size: 22px;
	}
	.anied-otp-code-boxes {
		gap: 8px;
	}
}
