.auth-page {
	width: 100%;
	min-height: calc(100vh - 220px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1.25rem 4rem;
	box-sizing: border-box;
}

.auth-card {
	width: 100%;
	max-width: 420px;
	background: linear-gradient(160deg, rgba(35, 35, 35, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 2.25rem 2rem 1.75rem;
	color: #e8e8e8;
	box-sizing: border-box;
}

.auth-card__brand {
	text-align: center;
	margin-bottom: 1.75rem;
}

.auth-card__brand img {
	max-width: 180px;
	height: auto;
	margin-bottom: 1rem;
	opacity: 0.95;
}

.auth-card__title {
	margin: 0 0 0.35rem;
	font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 1.85rem;
	font-weight: 300;
	letter-spacing: 0.04em;
	color: #fff;
	text-align: center;
}

.auth-card__subtitle {
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.62);
	text-align: center;
}

.auth-alert {
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	font-size: 0.92rem;
	line-height: 1.45;
}

.auth-alert--error {
	background: rgba(220, 53, 69, 0.15);
	border: 1px solid rgba(220, 53, 69, 0.35);
	color: #ffb3ba;
}

.auth-alert--success {
	background: rgba(61, 76, 111, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.9);
}

.auth-alert a {
	color: #fff;
	text-decoration: underline;
}

.auth-form {
	width: 100%;
	margin-top: 0.25rem;
	box-sizing: border-box;
}

.auth-field {
	width: 100%;
	margin-bottom: 1.1rem;
	box-sizing: border-box;
}

.auth-field:not(.auth-field--checkbox) > label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	float: none;
	margin: 0;
	padding: 0.8rem 0.95rem;
	font-size: 1rem;
	line-height: 1.4;
	color: #1a1a1a;
	background: #f5f5f5;
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: border-color 0.2s ease;
	box-sizing: border-box;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="email"]:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.45);
	background: #fff;
}

.auth-field--checkbox {
	width: 100%;
	margin: 0.25rem 0 1.35rem;
}

.auth-field--checkbox .ctrl-checkbox,
.auth-field--checkbox .checkbox {
	width: 100%;
	float: none;
}

.auth-field--checkbox label,
.auth-field--checkbox .checkbox label {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-size: 0.9rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	color: rgba(255, 255, 255, 0.75);
	cursor: pointer;
}

.auth-field--checkbox input[type="checkbox"] {
	width: auto !important;
	margin: 0;
	float: none;
	accent-color: #fff;
}

.auth-form__actions {
	width: 100%;
	text-align: right;
	margin-top: 0.25rem;
}

.auth-form input.auth-btn[type="submit"],
.auth-form #login_submit,
.auth-form #register_submit,
.auth-form #lost_password_submit {
    display: inline-block;
    width: auto !important;
    min-width: 7rem;
    margin: 0 !important;
    padding: 0.5rem 1rem !important;
    font-family: Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-align: center;
    color: #fff !important;
    background: #3D4C6F !important;
    border: 0 !important;
    border-radius: 0;
    cursor: pointer;
    float: none !important;
    clear: both;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    box-shadow: none;
    margin-top: 20px !important;
}

.auth-form input.auth-btn[type="submit"]:hover,
.auth-form input.auth-btn[type="submit"]:focus,
.auth-form #login_submit:hover,
.auth-form #login_submit:focus,
.auth-form #register_submit:hover,
.auth-form #register_submit:focus,
.auth-form #lost_password_submit:hover,
.auth-form #lost_password_submit:focus {
	background: #2D3340 !important;
	color: #fff !important;
	outline: none;
}

.auth-divider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	margin: 1.5rem 0 1.1rem;
	color: rgba(255, 255, 255, 0.35);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	box-sizing: border-box;
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(255, 255, 255, 0.1);
}

.auth-links {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
}

.auth-links a {
	display: block;
	width: 100%;
	padding: 0.55rem 0.75rem;
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease;
	box-sizing: border-box;
}

.auth-links a:hover,
.auth-links a:focus {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

.auth-links a.auth-links__primary {
	font-weight: 600;
	color: #fff;
}

.auth-links a.auth-links__primary:hover,
.auth-links a.auth-links__primary:focus {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 480px) {
	.auth-card {
		padding: 1.75rem 1.25rem 1.5rem;
	}

	.auth-card__title {
		font-size: 1.55rem;
	}
}
