/* IDD Hub — Frontend social login buttons */

.idd-hub-buttons {
	display: flex;
	gap: 10px;
}
.idd-hub-buttons--stack {
	flex-direction: column;
}
.idd-hub-buttons--inline {
	flex-direction: row;
	flex-wrap: wrap;
}

.idd-hub-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 18px;
	border: 1px solid rgba(15,23,42,.10);
	border-radius: 10px;
	background: #fff;
	color: #0f172a;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
	box-shadow: 0 2px 6px rgba(15,23,42,.05);
	min-height: 44px;
}
.idd-hub-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(15,23,42,.10);
	border-color: var(--idd-hub-brand, rgba(15,23,42,.30));
}
.idd-hub-btn:active {
	transform: translateY(0);
}

.idd-hub-btn-icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
	align-items: center;
	justify-content: center;
}
.idd-hub-btn-icon svg {
	width: 100%;
	height: 100%;
}
.idd-hub-btn-label {
	font-size: 14px;
	letter-spacing: -.01em;
}

/* Variantes par provider (couleurs de marque) */
.idd-hub-btn--google {
	border-color: rgba(66,133,244,.30);
}
.idd-hub-btn--facebook {
	background: #1877F2;
	color: #fff;
	border-color: #1877F2;
}
.idd-hub-btn--facebook .idd-hub-btn-icon svg path {
	fill: #fff;
}
.idd-hub-btn--apple {
	background: #000;
	color: #fff;
	border-color: #000;
}
.idd-hub-btn--apple .idd-hub-btn-icon svg path {
	fill: #fff;
}
.idd-hub-btn--discord {
	border-color: rgba(88,101,242,.30);
}
.idd-hub-btn--reddit {
	border-color: rgba(255,69,0,.30);
}

/* Layout inline (à 2-3 boutons côte à côte) */
.idd-hub-buttons--inline .idd-hub-btn {
	flex: 1 1 0;
	min-width: 140px;
}

/* Mobile : passe en stack */
@media (max-width: 480px) {
	.idd-hub-buttons--inline {
		flex-direction: column;
	}
}

/* ─── Step "choisis ton pseudo" ─────────────────────────────── */

.idd-hub-signup {
	max-width: 500px;
	margin: 24px auto;
	padding: 24px;
	background: #fff;
	border: 1px solid rgba(15,23,42,.10);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(15,23,42,.06);
}

.idd-hub-signup-greet {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px dashed rgba(15,23,42,.12);
}

.idd-hub-signup-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	flex: 0 0 56px;
	object-fit: cover;
	box-shadow: 0 4px 10px rgba(15,23,42,.10);
}

.idd-hub-signup-greet h3 {
	margin: 0 0 6px;
	font-size: 18px;
}

.idd-hub-signup-greet p {
	margin: 0;
	font-size: 14px;
	color: #475569;
	line-height: 1.5;
}

.idd-hub-signup-greet code {
	background: rgba(15,23,42,.05);
	padding: 1px 6px;
	border-radius: 4px;
	font-size: 12px;
}

.idd-hub-signup-form {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.idd-hub-signup-form label {
	font-weight: 700;
	font-size: 14px;
	color: #0f172a;
}

.idd-hub-input {
	padding: 10px 14px;
	font-size: 16px;
	border: 1px solid rgba(15,23,42,.15);
	border-radius: 8px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.idd-hub-input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.idd-hub-hint {
	color: #64748b;
	font-size: 12px;
	margin-bottom: 10px;
}

.idd-hub-submit {
	margin-top: 8px;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #3b82f6, #1d4ed8);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
	box-shadow: 0 4px 12px rgba(59,130,246,.25);
}

.idd-hub-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(59,130,246,.35);
}

.idd-hub-error {
	padding: 12px 14px;
	background: rgba(239,68,68,.08);
	border-left: 3px solid #ef4444;
	color: #b91c1c;
	font-size: 14px;
	border-radius: 6px;
}
