/* ─── VinipuxCabinet Login Modal ─────────────────────────── */

.vc-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.vc-modal-hidden {
	display: none !important;
}

.vc-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	cursor: pointer;
}

.vc-modal-card {
	position: relative;
	background: #fff;
	border-radius: 1.5rem;
	box-shadow:
		0 25px 50px -12px rgba(0, 0, 0, 0.25),
		0 0 0 1px rgba(0, 0, 0, 0.05);
	width: 100%;
	max-width: 26rem;
	padding: 2rem;
	max-height: 90vh;
	overflow-y: auto;
	animation: vc-modal-in 0.25s ease-out;
}

@media (min-width: 768px) {
	.vc-modal-card {
		padding: 2.5rem;
	}
}

@keyframes vc-modal-in {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

/* Close button */
.vc-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: #f5f5f4;
	color: #78716c;
	cursor: pointer;
	transition: all 0.15s;
	padding: 0;
	z-index: 1;
}

.vc-modal-close:hover {
	background: #e7e5e4;
	color: #1c1917;
}

.vc-modal-close svg {
	width: 1rem;
	height: 1rem;
}

/* ─── Header ─────────────────────────────────────────────── */
.vc-modal-header {
	text-align: center;
	margin-bottom: 1.5rem;
}

.vc-modal-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 1rem;
	background: linear-gradient(135deg, #f59e0b, #d97706);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.vc-modal-header h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.25rem;
	color: #1c1917;
}

.vc-modal-subtitle {
	font-size: 0.875rem;
	color: #78716c;
	margin: 0;
}

/* ─── Form ───────────────────────────────────────────────── */
.vc-modal-field {
	margin-bottom: 1rem;
}

.vc-modal-field label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #44403c;
	margin-bottom: 0.375rem;
}

.vc-modal-field input[type="email"] {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1.5px solid #e7e5e4;
	border-radius: 0.75rem;
	font-size: 0.9375rem;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	background: #fff;
	color: #1c1917;
	box-sizing: border-box;
}

.vc-modal-field input:focus {
	border-color: #f59e0b;
	box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.vc-modal-field-error {
	color: #ef4444;
	font-size: 0.75rem;
	margin-top: 0.25rem;
}

/* ─── Submit button ──────────────────────────────────────── */
.vc-modal-submit {
	display: block;
	width: 100%;
	padding: 0.875rem 1.5rem;
	border: none;
	border-radius: 0.75rem;
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
	background: linear-gradient(135deg, #f59e0b, #c2410c);
	cursor: pointer;
	transition: opacity 0.15s, transform 0.1s;
	box-shadow: 0 4px 14px rgba(194, 65, 12, 0.3);
}

.vc-modal-submit:hover {
	opacity: 0.92;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(194, 65, 12, 0.4);
}

.vc-modal-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Spinner */
.vc-modal-submit .vc-spinner,
.vc-btn .vc-spinner {
	display: inline-block;
	width: 1em;
	height: 1em;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: vc-spin 0.6s linear infinite;
	vertical-align: middle;
	margin-right: 0.5em;
}

@keyframes vc-spin {
	to { transform: rotate(360deg); }
}

/* ─── Divider ────────────────────────────────────────────── */
.vc-modal-divider {
	display: flex;
	align-items: center;
	margin: 1.25rem 0;
	gap: 0.75rem;
}

.vc-modal-divider::before,
.vc-modal-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e7e5e4;
}

.vc-modal-divider span {
	font-size: 0.8rem;
	color: #a8a29e;
}

/* Telegram */
.vc-modal-telegram {
	display: flex;
	justify-content: center;
}

/* ─── Alerts ─────────────────────────────────────────────── */
.vc-modal-alert {
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	font-size: 0.875rem;
	margin-bottom: 1rem;
	text-align: center;
}

.vc-modal-alert.vc-modal-alert-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
}

.vc-modal-alert.vc-modal-alert-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #16a34a;
}
