

/* Start:/local/components/bitrix/system.auth.authorize/templates/vavt-vue/style.css?17808960218835*/
/* VAVT Auth — Keycloak-inspired login theme
   Adapted from keycloak-theme/sign-vavt for Bitrix */

/* ── Variables ───────────────────────────── */

:root {
	--vavt-primary: #28417B;
	--vavt-primary-dark: #1e3362;
	--vavt-surface: #FFFFFF;
	--vavt-bg: #F5F5F5;
	--vavt-text: #212121;
	--vavt-text-secondary: #616161;
	--vavt-border: #BDBDBD;
	--vavt-border-focus: #28417B;
	--vavt-error: #C62828;
	--vavt-error-bg: #FFEBEE;
	--vavt-info: #1565C0;
	--vavt-info-bg: #E3F2FD;
	--vavt-radius: 4px;
}

/* ── Page layout ─────────────────────────── */

.vavt-login-page {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100dvh;
	margin: 0;
	padding: 24px 16px;
	box-sizing: border-box;
	background: #1a3466 url('/local/components/bitrix/system.auth.authorize/templates/vavt-vue/img/bg.svg') no-repeat center center;
	background-size: cover;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: var(--vavt-text);
	-webkit-font-smoothing: antialiased;
}

/* ── Logo ─────────────────────────────────── */

.vavt-login-logo {
	margin-bottom: 32px;
	text-align: center;
	width: 100%;
	max-width: 420px;
}

.vavt-login-logo__img {
	display: block;
	margin: 0 auto;
	height: 72px;
	max-width: 340px;
	width: auto;
}

/* ── Card ─────────────────────────────────── */

.vavt-login-card {
	background: var(--vavt-surface);
	max-width: 420px;
	width: 100%;
	border-radius: 8px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
	overflow: visible;
}

.vavt-login-card form {
	padding: 28px;
	padding-top: 24px;
}

/* ── Alerts ──────────────────────────────── */

.vavt-alert {
	padding: 12px 16px;
	margin: 0;
	padding: 12px 28px;
	font-size: 14px;
	line-height: 1.4;
	border-bottom: 1px solid #EEEEEE;
}

.vavt-alert--error {
	background: var(--vavt-error-bg);
	color: var(--vavt-error);
}

.vavt-alert--info {
	background: var(--vavt-info-bg);
	color: var(--vavt-info);
}

/* ── Form groups ─────────────────────────── */

.vavt-form-group {
	margin-bottom: 18px;
}

.vavt-label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--vavt-text-secondary);
	margin-bottom: 6px;
}

/* ── Inputs ──────────────────────────────── */

.vavt-input {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--vavt-border);
	border-radius: var(--vavt-radius);
	font-size: 15px;
	color: var(--vavt-text);
	background: var(--vavt-surface);
	outline: none;
	transition: border-color 0.15s;
	box-sizing: border-box;
	-webkit-appearance: none;
	line-height: 1.4;
}

.vavt-input:focus {
	border-color: var(--vavt-border-focus);
	box-shadow: 0 0 0 1px var(--vavt-border-focus);
}

.vavt-input::placeholder {
	color: #9E9E9E;
}

/* ── Input group (password toggle) ───────── */

.vavt-input-group {
	display: flex;
	align-items: stretch;
	border: 1.5px solid var(--vavt-border);
	border-radius: var(--vavt-radius);
	background: var(--vavt-surface);
	transition: border-color 0.15s;
	overflow: hidden;
}

.vavt-input-group:focus-within {
	border-color: var(--vavt-border-focus);
	box-shadow: 0 0 0 1px var(--vavt-border-focus);
}

.vavt-input--in-group {
	border: none;
	border-radius: 0;
	box-shadow: none;
	flex: 1;
	min-width: 0;
	outline: none;
}

.vavt-input--in-group:focus {
	box-shadow: none;
	border: none;
}

.vavt-toggle-password {
	background: transparent;
	border: none;
	padding: 0 12px;
	color: var(--vavt-text-secondary);
	cursor: pointer;
	min-width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	outline: none;
	transition: color 0.15s;
}

.vavt-toggle-password:hover {
	color: var(--vavt-primary);
}

/* ── Input hint ──────────────────────────── */

.vavt-input-hint {
	font-size: 12px;
	color: var(--vavt-primary);
	margin-top: 4px;
	padding-left: 2px;
	animation: vavt-fadeIn 0.2s ease;
}

@keyframes vavt-fadeIn {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ── Captcha ─────────────────────────────── */

.vavt-captcha-img {
	display: block;
	margin-bottom: 10px;
	border: 1px solid #EEEEEE;
	border-radius: var(--vavt-radius);
}

/* ── Checkbox ────────────────────────────── */

.vavt-form-options {
	margin-bottom: 20px;
}

.vavt-checkbox {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--vavt-text-secondary);
	cursor: pointer;
}

.vavt-checkbox input[type="checkbox"] {
	accent-color: var(--vavt-primary);
	width: 16px;
	height: 16px;
	min-width: 16px;
	margin: 0;
	flex-shrink: 0;
}

/* ── Primary button ──────────────────────── */

.vavt-btn-primary {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 13px 24px;
	background: var(--vavt-primary);
	color: #FFFFFF;
	border: none;
	border-radius: var(--vavt-radius);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
	-webkit-appearance: none;
	text-align: center;
	min-height: 48px;
}

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

.vavt-btn-primary:active {
	transform: scale(0.99);
}

.vavt-btn-primary:disabled {
	opacity: 0.8;
	cursor: wait;
}

/* ── Spinner ─────────────────────────────── */

.vavt-spinner {
	display: inline-block;
	width: 22px;
	height: 22px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: vavt-spin 0.6s linear infinite;
}

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

/* ── Links ───────────────────────────────── */

.vavt-links {
	text-align: center;
	margin-top: 16px;
}

.vavt-link {
	color: var(--vavt-primary);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.vavt-link:hover {
	text-decoration: underline;
}

/* ── Tutorial ────────────────────────────── */

.vavt-tutorial {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #EEEEEE;
	text-align: center;
}

.vavt-tutorial__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--vavt-text-secondary);
	font-size: 12px;
	text-decoration: none;
	line-height: 1.4;
}

.vavt-tutorial__link:hover {
	color: var(--vavt-primary);
}

.vavt-tutorial__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* ── Responsive ──────────────────────────── */

@media (max-width: 480px) {
	.vavt-login-page {
		padding: 16px 12px;
		justify-content: flex-start;
		padding-top: 40px;
	}

	.vavt-login-logo {
		margin-bottom: 24px;
	}

	.vavt-login-logo__img {
		height: 48px;
		max-width: 220px;
	}

	.vavt-login-card {
		border-radius: 6px;
		box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
	}

	.vavt-login-card form {
		padding: 20px;
		padding-top: 8px;
	}

	.vavt-input {
		font-size: 16px; /* prevents iOS zoom */
	}
}

/* ── Override login.vavt site template ────── */

/* Hide the site template's own logo, background, clouds */
body {
	background: #1a3466 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Reset wrapper from login.vavt header.php */
.log-main-table {
	all: unset !important;
	display: contents !important;
}

/* Hide site template logo */
.logo-wrapper,
.log-main-table > .logo-wrapper {
	display: none !important;
}

/* Hide footer caption */
.log-popup-caption-wrap {
	display: none !important;
}

/* Hide old popup wrappers if any */
.log-popup-wrap,
.log-popup {
	all: unset;
	display: contents;
}

/* Hide cloud decorations from login.vavt template_styles */
.cloud,
.cloud-small,
[class*="cloud"] {
	display: none !important;
}

/* Фикс мобильной ширины: шаблон login.vavt задаёт body{min-width:1024px},
   из-за чего на узких экранах карточка уезжает за край и появляется
   горизонтальный scroll. Снимаем фикс только ниже 1024px (десктоп не трогаем). */
@media (max-width: 1024px) {
    html, body { min-width: 0 !important; }
}

/* End */
/* /local/components/bitrix/system.auth.authorize/templates/vavt-vue/style.css?17808960218835 */
