/* ============================================================
   Sportiva User — Login/Registration Widget CSS
   BEM methodology, advanced styling
   ============================================================ */

.spv-auth-widget {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* ==================== Card Container ==================== */

.spv-auth-widget__card {
	background: #fff;
	border-radius: 12px;
	padding: 32px;
	margin: 0 auto;
	min-height: 400px;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}

/* ==================== Layout Variants ==================== */

.spv-auth-widget--tabs {
	/* Tab layout - default */
}

.spv-auth-widget--split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.spv-auth-widget--card-center {
	margin: 0 auto;
}

.spv-auth-widget--hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: center;
}

.spv-auth-widget--hero .spv-auth-widget__hero {
	padding: 40px;
}

/* ==================== Hero Section ==================== */

.spv-auth-widget__hero h3 {
	font-size: 32px;
	font-weight: 700;
	color: #24244d;
	margin: 0 0 16px;
}

.spv-auth-widget__hero h4 {
	font-size: 20px;
	font-weight: 600;
	color: #27ae60;
	margin: 0 0 12px;
}

.spv-auth-widget__hero p {
	font-size: 16px;
	color: #666;
	margin: 0 0 24px;
	line-height: 1.6;
}

.spv-auth-widget__hero-cta {
	display: inline-block;
	padding: 12px 28px;
	background: #27ae60;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: background 0.2s;
}

.spv-auth-widget__hero-cta:hover {
	background: #219150;
}

/* ==================== Sections ==================== */

.spv-auth-widget__login,
.spv-auth-widget__register,
.spv-auth-widget__wizard {
	width: 100%;
	box-sizing: border-box;
}

.spv-auth-widget__login h2,
.spv-auth-widget__register h2,
.spv-auth-widget__wizard h2 {
	font-size: 24px;
	font-weight: 700;
	color: #24244d;
	margin: 0 0 12px;
}

.spv-auth-widget__subtitle {
	font-size: 14px;
	color: #666;
	margin: 0 0 24px;
}

/* ==================== Tabs Layout ==================== */

.spv-auth-widget__tabs {
	width: 100%;
}

.spv-auth-widget__tab-nav {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
	border-bottom: 2px solid #e8e8e8;
}

.spv-auth-widget__tab {
	padding: 12px 20px;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	font-size: 15px;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	transition: all 0.2s ease;
}

.spv-auth-widget__tab:hover {
	color: #24244d;
}

.spv-auth-widget__tab.active {
	color: #27ae60;
	border-bottom-color: #27ae60;
}

.spv-auth-widget__tab-content {
	display: none;
}

.spv-auth-widget__tab-content.active {
	display: block;
}

/* ==================== Switch Layout ==================== */

.spv-auth-widget__switch-container {
	width: 100%;
}

.spv-auth-widget__switch-toggle {
	margin-top: 16px;
}

.spv-auth-widget__switch-link {
	color: #27ae60;
	text-decoration: none;
	font-weight: 600;
}

.spv-auth-widget__switch-link:hover {
	text-decoration: underline;
}

/* ==================== Messages ==================== */

.spv-auth-widget__message {
	text-align: center;
	padding: 40px 20px;
	background: #f8f9fb;
	border-radius: 12px;
}

.spv-auth-widget__message p {
	font-size: 16px;
	color: #555;
	margin-bottom: 20px;
}

/* ==================== WordPress Login Form Override ==================== */

.spv-auth-widget #spv-loginform label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: #333;
	font-size: 14px;
}

.spv-auth-widget #spv-loginform input[type="text"],
.spv-auth-widget #spv-loginform input[type="password"] {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
	margin-bottom: 16px;
}

.spv-auth-widget #spv-loginform input:focus {
	outline: none;
	border-color: #27ae60;
	box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.15);
}

.spv-auth-widget #spv-loginform .forgetmenot {
	margin-bottom: 16px;
}

.spv-auth-widget #spv-loginform input[type="checkbox"] {
	margin-right: 8px;
}

.spv-auth-widget #spv-loginform #wp-submit {
	display: inline-block;
	padding: 11px 26px;
	background: #27ae60;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	transition: background 0.2s;
}

.spv-auth-widget #spv-loginform #wp-submit:hover {
	background: #219150;
}

.spv-auth-widget__forgot {
	margin-top: 16px;
}

.spv-auth-widget__forgot a {
	color: #666;
	text-decoration: none;
	font-size: 14px;
}

.spv-auth-widget__forgot a:hover {
	color: #27ae60;
}

.spv-auth-widget__switch {
	margin-top: 16px;
}

.spv-auth-widget__switch a {
	color: #27ae60;
	text-decoration: none;
	font-weight: 600;
}

.spv-auth-widget__switch a:hover {
	text-decoration: underline;
}

/* ==================== Responsive ==================== */

@media (max-width: 768px) {
	.spv-auth-widget--split {
		grid-template-columns: 1fr;
	}

	.spv-auth-widget--hero {
		grid-template-columns: 1fr;
	}

	.spv-auth-widget__tab-nav {
		flex-wrap: wrap;
	}

	.spv-auth-widget__tab {
		flex: 1;
		text-align: center;
	}

	/* Mobile: card a tutta larghezza + padding ridotto (fix procedura guidata stretta) */
	.spv-auth-widget,
	.spv-auth-widget__card,
	.spv-auth-widget__login,
	.spv-auth-widget__register,
	.spv-auth-widget__wizard {
		width: 100% !important;
		max-width: 100% !important;
	}
	.spv-auth-widget__card {
		padding: 20px 16px;
	}
}