/**
 * CLUBUZ Login + Register Popup
 * Version: 3.1.0
 */

html.clubuz-auth-popup-open,
body.clubuz-auth-popup-open {
	overflow: hidden !important;
}

.clubuz-auth-popup,
.clubuz-auth-popup * {
	box-sizing: border-box;
}

.clubuz-auth-popup[hidden] {
	display: none !important;
}

.clubuz-auth-popup {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	padding: 18px;
	align-items: center;
	justify-content: center;
}

.clubuz-auth-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .58);
	backdrop-filter: blur(2px);
}

.clubuz-auth-popup-dialog {
	position: relative;
	z-index: 1;
	width: min(430px, 100%);
	max-height: calc(100dvh - 36px);
	overflow-y: auto;
	padding: 30px;
	border: 1px solid #e2e8f0;
	border-radius: 22px;
	background: #ffffff;
	box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
	animation: clubuzAuthPopupIn .22s ease-out;
}

@keyframes clubuzAuthPopupIn {
	from {
		opacity: 0;
		transform: translateY(18px) scale(.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.clubuz-auth-popup-close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	width: 40px;
	height: 40px;
	padding: 0;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #334155;
	font-size: 27px;
	cursor: pointer;
}

.clubuz-auth-popup-brand {
	margin-bottom: 26px;
	color: #2563eb;
	font-size: 27px;
	font-weight: 900;
	letter-spacing: -.04em;
}

.clubuz-auth-panel h2 {
	margin: 0 44px 6px 0;
	color: #172337;
	font-size: 29px;
}

.clubuz-auth-popup-subtitle {
	margin: 0 0 23px;
	color: #64748b;
	font-size: 14px;
}

.clubuz-auth-form {
	display: grid;
	gap: 9px;
}

.clubuz-auth-form > label {
	margin-top: 8px;
	color: #334155;
	font-size: 13px;
	font-weight: 750;
}

.clubuz-auth-form input[type="text"],
.clubuz-auth-form input[type="email"],
.clubuz-auth-form input[type="password"] {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #cbd5e1;
	border-radius: 11px;
	outline: 0;
	background: #ffffff;
	color: #172337;
	font-size: 16px;
	pointer-events: auto !important;
	-webkit-user-select: text !important;
	user-select: text !important;
}

.clubuz-auth-form input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.clubuz-auth-password-wrap {
	position: relative;
}

.clubuz-auth-password-wrap input {
	padding-right: 54px !important;
}

.clubuz-auth-eye {
	position: absolute;
	top: 50%;
	right: 8px;
	display: inline-flex;
	width: 38px;
	height: 38px;
	padding: 0;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transform: translateY(-50%);
}

.clubuz-auth-remember {
	display: inline-flex !important;
	margin: 8px 0 5px !important;
	align-items: center;
	gap: 8px;
	color: #475569 !important;
	font-size: 13px !important;
	font-weight: 650 !important;
	cursor: pointer;
}

.clubuz-auth-remember input {
	width: 17px;
	height: 17px;
	margin: 0;
}

.clubuz-auth-message {
	display: none;
	padding: 11px 13px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.45;
}

.clubuz-auth-message.is-error {
	display: block;
	border: 1px solid #fecaca;
	background: #fff1f2;
	color: #be123c;
}

.clubuz-auth-message.is-success {
	display: block;
	border: 1px solid #bbf7d0;
	background: #f0fdf4;
	color: #15803d;
}

.clubuz-auth-submit {
	width: 100%;
	min-height: 50px;
	margin-top: 7px;
	border: 0;
	border-radius: 11px;
	background: #2563eb;
	color: #ffffff;
	font-size: 15px;
	font-weight: 850;
	cursor: pointer;
}

.clubuz-auth-submit[disabled] {
	opacity: .65;
	cursor: wait;
}

.clubuz-auth-links,
.clubuz-auth-switch {
	display: flex;
	margin-top: 18px;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	color: #64748b;
	font-size: 13px;
}

.clubuz-auth-links a,
.clubuz-auth-links button,
.clubuz-auth-switch button {
	padding: 0;
	border: 0;
	background: transparent;
	color: #1d4ed8 !important;
	font: inherit;
	font-weight: 750;
	text-decoration: none !important;
	cursor: pointer;
}

@media (max-width: 600px) {
	.clubuz-auth-popup {
		padding: 0;
		align-items: flex-end;
	}

	.clubuz-auth-popup-dialog {
		width: 100%;
		max-height: calc(100dvh - 42px);
		padding: 29px 23px 34px;
		border: 0;
		border-radius: 24px 24px 0 0;
		animation-name: clubuzAuthPopupMobileIn;
	}

	@keyframes clubuzAuthPopupMobileIn {
		from {
			opacity: 0;
			transform: translateY(100%);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.clubuz-auth-links {
		flex-direction: column;
		align-items: flex-start;
	}
}


/* Create Account V2 */
.clubuz-auth-password-match {
	min-height: 20px;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 750;
}

.clubuz-auth-password-match.is-match {
	color: #15803d;
}

.clubuz-auth-password-match.is-mismatch {
	color: #be123c;
}

.clubuz-auth-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
}

.clubuz-auth-submit:disabled {
	opacity: .48;
	cursor: not-allowed;
}

.clubuz-auth-submit.is-loading {
	opacity: .78;
	cursor: wait;
}

.clubuz-auth-spinner {
	display: none;
	width: 17px;
	height: 17px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: clubuzAuthSpin .7s linear infinite;
}

.clubuz-auth-submit.is-loading .clubuz-auth-spinner {
	display: inline-block;
}

@keyframes clubuzAuthSpin {
	to {
		transform: rotate(360deg);
	}
}

.clubuz-auth-success-panel {
	padding: 8px 0 2px;
	text-align: center;
}

.clubuz-auth-success-icon {
	display: inline-flex;
	width: 72px;
	height: 72px;
	margin: 8px auto 22px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ecfdf5;
	color: #15803d;
	font-size: 38px;
	font-weight: 900;
}

.clubuz-auth-success-panel h2 {
	margin-right: 0;
}

.clubuz-auth-success-panel .clubuz-auth-submit {
	margin-top: 8px;
}


/* Forgot Password V2.1 */
.clubuz-auth-links button,
.clubuz-auth-switch button {
	appearance: none;
	-webkit-appearance: none;
}

.clubuz-auth-links button {
	padding: 0;
	border: 0;
	background: transparent;
	color: #1d4ed8 !important;
	font: inherit;
	font-size: 13px;
	font-weight: 750;
	text-decoration: none !important;
	cursor: pointer;
}

.clubuz-auth-popup[data-mode="forgot"] .clubuz-auth-popup-dialog {
	max-width: 430px;
}


/* v2.1.1: Forgot Password is popup-only; no standalone page is shown. */


/* Authentication V3: custom password reset */
.clubuz-password-strength {
	margin-top: 2px;
}

.clubuz-password-strength-bar {
	height: 6px;
	overflow: hidden;
	border-radius: 999px;
	background: #e2e8f0;
}

.clubuz-password-strength-bar span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: #ef4444;
	transition: width .2s ease, background-color .2s ease;
}

.clubuz-password-strength small {
	display: block;
	margin-top: 7px;
	color: #64748b;
	font-size: 12px;
	font-weight: 650;
}

.clubuz-password-strength.is-weak .clubuz-password-strength-bar span {
	width: 33%;
	background: #ef4444;
}

.clubuz-password-strength.is-medium .clubuz-password-strength-bar span {
	width: 66%;
	background: #f59e0b;
}

.clubuz-password-strength.is-strong .clubuz-password-strength-bar span {
	width: 100%;
	background: #16a34a;
}

.clubuz-password-strength.is-weak small {
	color: #b91c1c;
}

.clubuz-password-strength.is-medium small {
	color: #b45309;
}

.clubuz-password-strength.is-strong small {
	color: #15803d;
}
