/*
 * Neutral authentication surface (issue #227). The demo theme
 * (talim-demo-theme.css) is active on the whole front end; these
 * rules only shape the two cards and the buttons.
 */

.talim-auth {
	max-width: 46rem;
	margin: 0 auto;
}

.talim-auth-notice {
	padding: 0.75rem 1rem;
	border-left: 4px solid #7d2c6e;
	background: #f7f2f6;
	font-size: 1rem;
}

.talim-auth-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
	gap: 1.5rem;
}

.talim-auth-card {
	background: #ffffff;
	border: 1px solid #e6dfd9;
	border-radius: 12px;
	padding: 1.5rem;
}

.talim-auth-kicker {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8rem;
	color: #7d2c6e;
	margin-bottom: 0.25rem;
}

.talim-auth-title {
	margin: 0 0 0.5rem 0;
}

.talim-auth-note {
	margin: 0 0 1rem 0;
}

.talim-auth-form {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.talim-auth-form label {
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

.talim-auth-form input {
	padding: 0.6rem 0.75rem;
	border: 1px solid #c9bfc6;
	border-radius: 8px;
	font-size: 1rem;
}

.talim-auth-btn {
	margin-top: 1rem;
	padding: 0.7rem 1.25rem;
	background: #ffd500;
	color: #2a2a2a;
	border: none;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	display: inline-block;
}

.talim-auth-btn:hover {
	background: #e6c000;
}

.talim-auth-btn-secondary {
	background: #7d2c6e;
	color: #ffffff;
}

.talim-auth-btn-secondary:hover {
	background: #63215a;
	color: #ffffff;
}

.talim-auth-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.talim-auth-inline-form {
	display: inline;
	margin: 0;
}

/* Round user symbol in the header navigation (issue #227). */
.talim-user-menu-item {
	list-style: none;
	margin-left: 1rem;
}

.talim-user-menu {
	position: relative;
}

.talim-user-symbol {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #442e66;
	border: 2px solid #ffd500;
	cursor: pointer;
	list-style: none;
	overflow: hidden;
	padding: 0;
}

.talim-user-symbol::-webkit-details-marker {
	display: none;
}

.talim-user-symbol img,
.talim-user-symbol.avatar {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	margin: 0;
}

.talim-user-menu-panel {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 0.5rem);
	min-width: 11rem;
	background: #1d2327;
	border-radius: 10px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
	padding: 0.75rem 0.9rem;
	z-index: 999;
}

.talim-user-menu[open] .talim-user-menu-panel {
	display: block;
}

.talim-user-menu-name {
	color: #e8e8e8;
	font-weight: 600;
	margin-bottom: 0.4rem;
	white-space: nowrap;
}

.talim-user-menu-link {
	display: block;
	color: #ffd500;
	padding: 0.3rem 0;
	text-decoration: none;
	white-space: nowrap;
}

.talim-user-menu-link:hover {
	color: #e8e8e8;
}
