/* Main card */
.login-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.login-card {
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 48px 40px 36px;
	max-width: 450px;
	width: 100%;
	box-shadow: 0 2px 10px 0 var(--bg-tertiary);
	text-align: center;
	transition:
		background-color 0.3s ease,
		border-color 0.3s ease;
}

/* Logo */
.logo-img {
	height: 2rem;
	transition: all 0.3s ease;
}

.logo-text {
	margin-bottom: 0px;
	transition: opacity 0.2s ease;
	font-family: "Montserrat";
	font-weight: 900;
	font-size: 2rem;
	color: var(--logo-theme-primary);
}

/* Window title */
.login-title {
	font-size: 24px;
	font-weight: 400;
	margin-bottom: 8px;
	color: var(--text-color);
}

.login-subtitle {
	font-size: 16px;
	font-weight: 400;
	margin-bottom: 24px;
	color: var(--text-secondary);
}

/* Form elements */
.form-control {
	border: 1px solid var(--border-color);
	font-size: 16px;
	padding: 13px 15px;
	border-radius: 4px;
	transition:
		border-color 0.2s ease,
		background-color 0.3s ease;
}

.btn-outline-primary {
	color: var(--text-secondary);
	border-color: var(--border-color);
	background-color: transparent;
	padding: 9px 23px;
	border-radius: 4px;
}

/* Form panels */
.form-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 32px;
}

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

.credential-container {
	min-height: 12rem;
}

.formfield {
	min-height: 5.5rem;
}

/* Flip screen control */
.screen {
	display: none;
}

.screen.active {
	display: block;
}

/* Error messages */
.error-message {
	color: #d93025;
	font-size: 14px;
	margin-top: 8px;
	min-height: 24px;
	display: none;
}

.form-control.is-invalid {
	border-color: #d93025;
}

/* Small screen reduced margins */
@media (max-width: 480px) {
	.login-card {
		padding: 24px 24px 24px;
		margin: 0 16px;
	}
}
