/* SMS Auth - استایل ساده و مدرن */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap');

.sms-auth-wrap {
	--sms-auth-primary: #6d5efc;
	--sms-auth-primary-dark: #5a4de0;
	--sms-auth-radius: 18px;
	--sms-auth-text: #1f2333;
	--sms-auth-muted: #7a7f94;
	--sms-auth-border: #e6e7ee;
	--sms-auth-bg: #ffffff;
	--sms-auth-error: #e0405a;
	--sms-auth-success: #22b07d;

	display: flex;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	font-family: 'Vazirmatn', 'IRANSans', 'Tahoma', sans-serif;
}

@media (prefers-color-scheme: dark) {
	.sms-auth-wrap:not(.sms-auth-no-dark) {
		--sms-auth-text: #f1f2f8;
		--sms-auth-muted: #a3a7bb;
		--sms-auth-border: #34374a;
		--sms-auth-bg: #1c1e2b;
	}
	.sms-auth-wrap:not(.sms-auth-no-dark) .sms-auth-input {
		background: #23253560;
	}
}

.sms-auth-wrap * {
	box-sizing: border-box;
}

.sms-auth-card {
	width: 100%;
	max-width: 380px;
	background: var(--sms-auth-bg);
	border: 1px solid var(--sms-auth-border);
	border-radius: var(--sms-auth-radius, 18px);
	padding: 32px 28px;
	box-shadow: 0 10px 30px rgba(30, 30, 60, 0.06);
	position: relative;
	overflow: hidden;
}

.sms-auth-logo {
	display: block;
	max-height: 42px;
	width: auto;
	margin: 0 auto 18px;
}

.sms-auth-progress {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 20px;
}

.sms-auth-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--sms-auth-border);
	transition: background 0.25s ease, transform 0.25s ease;
}

.sms-auth-dot.is-active {
	background: var(--sms-auth-primary);
	transform: scale(1.15);
}

.sms-auth-step {
	animation: smsAuthFadeIn 0.35s ease;
}

@keyframes smsAuthFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.sms-auth-title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: var(--sms-auth-text);
}

.sms-auth-subtitle {
	margin: 0 0 22px;
	font-size: 13.5px;
	line-height: 1.9;
	color: var(--sms-auth-muted);
}

.sms-auth-phone-display {
	color: var(--sms-auth-text);
	font-weight: 700;
	direction: ltr;
	display: inline-block;
}

.sms-auth-field {
	margin-bottom: 18px;
}

.sms-auth-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	color: var(--sms-auth-text);
	font-weight: 600;
}

.sms-auth-input-group {
	position: relative;
}

.sms-auth-input-icon {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	color: var(--sms-auth-muted);
	display: flex;
	pointer-events: none;
}

.sms-auth-input {
	width: 100%;
	padding: 13px 16px;
	border-radius: 12px;
	border: 1.5px solid var(--sms-auth-border);
	font-size: 15px;
	color: var(--sms-auth-text);
	background: #fbfbfd;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	outline: none;
}

.sms-auth-input-group .sms-auth-input {
	padding-right: 42px;
}

.sms-auth-input:focus {
	border-color: var(--sms-auth-primary);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--sms-auth-primary) 15%, transparent);
	background: #fff;
}

.sms-auth-code-input {
	letter-spacing: 6px;
	font-size: 20px;
	text-align: center;
	direction: ltr;
	font-weight: 700;
}

.sms-auth-btn {
	width: 100%;
	padding: 13px 16px;
	border-radius: 12px;
	border: none;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
	font-family: inherit;
}

.sms-auth-btn:active {
	transform: scale(0.98);
}

.sms-auth-btn-primary {
	background: var(--sms-auth-primary);
	color: #fff;
}

.sms-auth-btn-primary:hover {
	background: var(--sms-auth-primary-dark);
}

.sms-auth-btn-primary:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.sms-auth-btn-secondary {
	display: inline-block;
	text-align: center;
	text-decoration: none;
	background: #f2f1fe;
	color: var(--sms-auth-primary-dark);
}

.sms-auth-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 16px;
}

.sms-auth-link {
	background: none;
	border: none;
	padding: 0;
	font-size: 12.5px;
	color: var(--sms-auth-primary);
	cursor: pointer;
	font-family: inherit;
	font-weight: 600;
}

.sms-auth-link:disabled {
	color: var(--sms-auth-muted);
	cursor: default;
}

.sms-auth-message {
	min-height: 18px;
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.7;
}

.sms-auth-message.is-error {
	color: var(--sms-auth-error);
}

.sms-auth-message.is-success {
	color: var(--sms-auth-success);
}

.sms-auth-step-success {
	text-align: center;
	padding: 12px 0;
}

.sms-auth-success-icon {
	width: 56px;
	height: 56px;
	line-height: 56px;
	border-radius: 50%;
	background: rgba(34, 176, 125, 0.12);
	color: var(--sms-auth-success);
	font-size: 26px;
	margin: 0 auto 16px;
	animation: smsAuthPop 0.3s ease;
}

@keyframes smsAuthPop {
	from { transform: scale(0.6); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.sms-auth-success-text {
	font-size: 14.5px;
	color: var(--sms-auth-text);
	margin: 0;
}

.sms-auth-logged-in {
	text-align: center;
}

.sms-auth-logged-in p {
	margin: 0 0 16px;
	color: var(--sms-auth-text);
	font-size: 14.5px;
}

@media (max-width: 420px) {
	.sms-auth-card {
		padding: 26px 20px;
		border-radius: 14px;
	}
}
