@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Istok+Web:wght@700&display=swap");

html.auth-page {
	font-size: 16px !important;
}

html.auth-page,
body.auth-page {
	min-height: 100vh;
	margin: 0;
	background: #f9fafb;
	color: #1a1a1b;
	font-family: Inter, system-ui, sans-serif;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

body.auth-page {
	font-size: 1rem;
}

.auth-page * {
	box-sizing: border-box;
}

.auth-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.auth-stack {
	width: 100%;
	max-width: 28rem;
}

.auth-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 1.5rem;
}

.auth-brand-icon {
	width: 6rem;
	height: 6rem;
	position: relative;
}

.auth-brand-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.auth-brand-name {
	margin-top: 0.5rem;
	text-align: center;
	font-family: "Istok Web", Inter, sans-serif;
	font-weight: 700;
	font-size: 3.43rem;
	line-height: 1.1;
	color: #1a1a1b;
}

.auth-card {
	width: 100%;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
	color: #1a1a1b;
}

.auth-card-header {
	padding: 1.5rem 1.5rem 0.25rem;
}

.auth-card-header h1 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.025em;
	color: #1a1a1b;
	line-height: 1.3;
}

.auth-card-header p {
	margin: 0.35rem 0 0;
	font-size: 0.875rem;
	color: #6b7280;
}

.auth-card-body {
	padding: 1.5rem;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.auth-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.auth-field label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #1a1a1b;
	margin: 0;
}

.auth-field input.form-control,
.auth-page .auth-field .form-control {
	height: 2.5rem;
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 0.375rem;
	background: #fff;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	font-family: inherit;
	color: #1a1a1b;
	box-shadow: none;
}

.auth-field input.form-control::placeholder {
	color: #9ca3af;
}

.auth-field input.form-control:focus {
	outline: none;
	border-color: #1a1a1b;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(26 26 27 / 0.18);
}

.auth-page .btn-auth {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 2.5rem;
	padding: 0.5rem 1rem;
	border: 0;
	border-radius: 0.375rem;
	background: #1a1a1b;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.auth-page .btn-auth:hover,
.auth-page .btn-auth:focus {
	background: #111;
	color: #fff;
}

.auth-page .btn-auth:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.auth-alert {
	padding: 0.75rem 0.9rem;
	border-radius: 0.375rem;
	font-size: 0.8125rem;
	margin-bottom: 1rem;
}

.auth-alert strong {
	font-weight: 600;
}

.auth-alert-danger {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.auth-alert-success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.auth-alert-warning {
	background: #fffbeb;
	color: #92400e;
	border: 1px solid #fde68a;
}

.auth-card-footer {
	padding: 0 1.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.auth-divider {
	width: 100%;
	height: 1px;
	background: #e5e7eb;
	margin: 0.75rem 0 1rem;
	border: 0;
}

.auth-card-footer p,
.auth-copy {
	margin: 0;
	text-align: center;
	font-size: 0.875rem;
	color: #6b7280;
}

.auth-card-footer a,
.auth-link {
	color: #1a1a1b;
	font-weight: 500;
	text-decoration: none;
}

.auth-card-footer a:hover,
.auth-link:hover {
	text-decoration: underline;
}

.auth-copy {
	margin-top: 2rem;
}

.auth-check {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: #374151;
}

.auth-check input {
	margin-top: 0.2rem;
}

.auth-check a {
	color: #1a1a1b;
	font-weight: 500;
}

.auth-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 768px) {
	.auth-row-2 {
		grid-template-columns: 1fr 1fr;
	}
}

.auth-page em.invalid-feedback,
.auth-page .invalid-feedback {
	font-size: 0.75rem;
	color: #dc2626;
	font-style: normal;
}

.auth-page .form-control.is-invalid {
	border-color: #dc2626;
}

.auth-extra {
	display: flex;
	justify-content: flex-end;
}

.auth-extra a {
	font-size: 0.875rem;
	color: #1a1a1b;
	font-weight: 500;
	text-decoration: none;
}

.auth-extra a:hover {
	text-decoration: underline;
}
