/* Themed styles for Login & Sign Up pages */

/* Layout */
.auth-wrapper {
	min-height: calc(100vh - 56px); /* account for fixed header */
	display: grid;
	place-items: center;
	background: var(--surface-muted);
	padding: 3rem 1rem;
}

.auth-card {
	width: 100%;
	max-width: 560px;
	background: #fff;
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	overflow: hidden;
}

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

/* Role tabs */
.role-tabs {
	display: flex;
	gap: .5rem;
	background: rgba(0,0,0,0.03);
	border-radius: 999px;
	padding: .375rem;
	margin-bottom: 1.25rem;
}

.role-tab {
	flex: 1 1 auto;
	text-align: center;
	border: 0;
	background: transparent;
	color: #333;
	font-weight: 600;
	padding: .5rem .75rem;
	border-radius: 999px;
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.role-tab[aria-selected="true"],
.role-tab.active {
	background: var(--color-primary);
	color: #fff;
	box-shadow: 0 6px 14px rgba(var(--color-primary-rgb), .35);
}

/* Form */
.form-label { font-weight: 600; }

.form-control {
	border-radius: 10px;
	border-color: rgba(0,0,0,0.15);
	padding:.625rem .875rem;
}

.form-control:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 .2rem rgba(var(--color-primary-rgb), .15);
}

.help-links {
	display:flex;
	justify-content: flex-start; /* default: left aligned */
	align-items:center;
	gap:.75rem;
}

.help-links.center { justify-content: center; }

.help-links a {
	color: var(--color-primary);
	font-weight: 600;
	text-decoration: none;
}

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

.brand-divider {
	height: 4px;
	width: 90px;
	background: var(--color-primary);
	border-radius: 2px;
}

/* Small */
@media (max-width: 480px) {
	.auth-card .card-body { padding: 1.25rem; }
}
