/* Cubex Secure Login - frontend styles */

.csl-wrapper {
	min-height: 100vh;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-direction: column;
	background: #f3f4f6;
	padding: 60px 16px 40px;
}

.csl-card {
	max-width: 420px;
	width: 100%;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
	padding: 32px 28px 24px;
	box-sizing: border-box;
}

.csl-card.csl-card--register {
	max-width: 420px;
}

@media (max-width: 640px) {
	.csl-wrapper {
		padding: 36px 12px 24px;
	}

	.csl-card,
	.csl-card.csl-card--register {
		width: 100%;
		max-width: 100%;
	}
}

.csl-title {
	margin: 0 0 16px;
	font-size: 24px;
	font-weight: 600;
	color: #111827;
}

.csl-logo {
	margin-bottom: 16px;
	text-align: center;
}

.csl-form {
	margin-top: 8px;
}

.csl-field {
	margin-bottom: 16px;
}

.csl-field.csl-field--half {
	display: inline-block;
	width: calc(50% - 8px);
	vertical-align: top;
}

@media (max-width: 640px) {
	.csl-field.csl-field--half {
		width: 100%;
		display: block;
	}
}

.csl-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	color: #4b5563;
}

.csl-field input[type="text"],
.csl-field input[type="email"],
.csl-field input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #d1d5db;
	font-size: 16px !important;
	line-height: 1.4;
	box-sizing: border-box;
}

.csl-otp-wrapper {
	margin-top: 4px;
}

.csl-otp-inputs {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 2px;
}

.csl-otp-inputs .csl-otp-digit {
	width: 42px !important;
	height: 48px;
	text-align: center;
	font-size: 22px;
	font-weight: 600;
	display: inline-block;
	border-radius: 8px;
	border: 1px solid #d1d5db;
	box-sizing: border-box;
}

.csl-otp-inputs .csl-otp-digit:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 1px #2563eb33;
}

.csl-field select {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #d1d5db;
	font-size: 16px !important;
	line-height: 1.4;
	box-sizing: border-box;
}

.csl-field input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 1px #2563eb33;
}

.csl-field-inline label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
}

.csl-field-inline input[type="checkbox"] {
	margin: 0;
}

.csl-choice-group--stacked label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
}

.csl-choice-group--inline label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 12px;
	margin-bottom: 4px;
}

.csl-field-description {
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.4;
	color: #6b7280;
}

.csl-field-row {
	display: flex;
	gap: 12px;
}

.csl-actions {
	margin-top: 8px;
}

.csl-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
}

.csl-button-primary {
	background: #2563eb;
	color: #ffffff;
}

.csl-button-primary:hover {
	background: #1d4ed8;
}

.csl-error {
	background: #fef2f2;
	color: #b91c1c;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 14px;
	margin-bottom: 12px;
}

.csl-message {
	background: #ecfdf3;
	color: #166534;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 14px;
	margin-bottom: 12px;
}

.csl-links {
	margin-top: 16px;
	font-size: 14px;
	color: #6b7280;
}

.csl-links a {
	color: #2563eb;
	text-decoration: none;
}

.csl-links a:hover {
	text-decoration: underline;
}

.csl-separator {
	margin: 0 6px;
	color: #d1d5db;
}

.csl-branding {
	margin-top: 20px;
	text-align: right;
	font-size: 11px;
	color: #9ca3af;
}

.csl-powered-link {
	color: #9ca3af;
	opacity: 0.9;
	text-decoration: none;
}

.csl-powered-link:hover {
	color: #6b7280;
	text-decoration: underline;
}

/* Amikor a CSL oldalaknál a téma fejlécét / láblécét el akarjuk rejteni,
 * a body osztályai alapján rejtjük el a leggyakoribb sablonelemeket.
 * Így a HTML struktúra és a hook-ok megmaradnak, csak vizuálisan tűnnek el. */
body.csl-hide-header header,
body.csl-hide-header .site-header,
body.csl-hide-header #masthead,
body.csl-hide-header .page-header,
body.csl-hide-header .entry-header,
body.csl-hide-header #header {
	display: none !important;
}

body.csl-hide-footer footer,
body.csl-hide-footer .site-footer,
body.csl-hide-footer #colophon,
body.csl-hide-footer .site-info,
body.csl-hide-footer #footer {
	display: none !important;
}

/* Ha mind a fejléc, mind a lábléc rejtve van, a CSL wrapper
 * teljes képernyős overlay-ként jelenjen meg, és takarjon mindent. */
body.csl-hide-header.csl-hide-footer .csl-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	min-height: 100vh;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	background: #f3f4f6;
	padding: 60px 16px 80px;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
	body.csl-hide-header.csl-hide-footer .csl-wrapper {
		padding: 36px 12px 60px;
	}
}
