/**
 * Alavi auth hub — profile form + student upgrade chrome.
 */

.alavi-auth-profile {
	max-width: 28rem;
	margin: 0 auto;
	padding: 1.5rem 1rem 2.5rem;
}

.alavi-auth-profile__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	color: var(--alavi-accent, #c9a227);
}

.alavi-auth-profile__title {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--alavi-ink, #111);
}

.alavi-auth-profile__lead {
	margin: 0 0 1.25rem;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--alavi-muted, #555);
}

.alavi-auth-profile__flash {
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	font-size: 0.9rem;
}

.alavi-auth-profile__flash--ok {
	background: #eef8f0;
	color: #1b5e20;
}

.alavi-auth-profile__flash--err {
	background: #fdecea;
	color: #8a1f11;
}

.alavi-auth-profile__flash p {
	margin: 0.25rem 0;
}

.alavi-auth-profile__form {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.alavi-auth-profile__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

@media (max-width: 520px) {
	.alavi-auth-profile__row {
		grid-template-columns: 1fr;
	}
}

.alavi-auth-profile__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.alavi-auth-profile__field input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	border: 1px solid rgba(17, 17, 17, 0.14);
	border-radius: 8px;
	font: inherit;
	background: #fff;
}

.alavi-auth-profile__field input[readonly] {
	background: #f6f6f4;
	color: #444;
}

.alavi-auth-profile__hint {
	margin: 0.35rem 0 0;
	font-size: 0.8rem;
	color: #777;
}

.alavi-auth-profile__submit {
	margin-top: 0.5rem;
	appearance: none;
	border: 0;
	border-radius: 8px;
	padding: 0.8rem 1.1rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	background: var(--alavi-accent, #c9a227);
	color: #111;
}

.alavi-auth-profile__submit:hover {
	background: var(--alavi-accent-hover, #b8921f);
}

.alavi-req {
	color: var(--alavi-danger, #b42318);
}

.alavi-auth-profile--guest {
	text-align: center;
	padding: 2rem 1rem;
}

/* Student upgrade form tweaks */
.alavi-tutor-register--upgrade .alavi-tutor-reg-card__title {
	font-size: 1.35rem;
}

.alavi-tutor-reg-locked {
	opacity: 0.92;
}

.alavi-tutor-reg-locked input[readonly] {
	background: #f6f6f4;
}

.alavi-tutor-reg-upgrade-note {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: rgba(201, 162, 39, 0.12);
	font-size: 0.9rem;
	line-height: 1.6;
}

.alavi-header-auth__item--profile svg {
	flex-shrink: 0;
}
