/* Creatives Crafts - Login & Sign Up */
.cc-auth {
	--cc-brand: #7b1e2b;
	--cc-brand-dark: #5f1621;
	--cc-brand-soft: rgba(123, 30, 43, 0.12);
	--cc-text: #2a2220;
	--cc-muted: #6f6560;
	--cc-border: #e7ddd5;
	--cc-soft: #f8f1ec;
	--cc-ok: #2e7d32;
	--cc-err: #b3261e;
	--cc-radius: 12px;

	max-width: 460px;
	margin: 48px auto 72px;
	padding: 0 16px;
	font-family: Poppins, system-ui, sans-serif;
	color: var(--cc-text);
}
.cc-auth *, .cc-auth *::before, .cc-auth *::after { box-sizing: border-box; }
.cc-auth [hidden] { display: none !important; }

/* Notices aligned with the card */
body.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper {
	max-width: 428px;
	margin: 32px auto -24px;
}

/* Card */
.cc-auth__card {
	background: #fff;
	border: 1px solid var(--cc-border);
	border-radius: 20px;
	box-shadow: 0 12px 40px rgba(80, 30, 30, 0.08);
	padding: 36px 32px 28px;
}
.cc-auth__head { text-align: center; margin-bottom: 24px; }
.woocommerce .cc-auth .cc-auth__title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 6px;
	padding: 0;
	color: var(--cc-text);
	border: 0;
}
.woocommerce .cc-auth .cc-auth__sub { margin: 0; font-size: 14px; line-height: 1.5; color: var(--cc-muted); }

/* Tabs */
.cc-auth__tabs {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--cc-soft);
	border-radius: 999px;
	padding: 4px;
	margin-bottom: 26px;
}
.cc-auth__tab-indicator {
	position: absolute;
	top: 4px; bottom: 4px; left: 4px;
	width: calc(50% - 4px);
	background: var(--cc-brand);
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(123, 30, 43, 0.25);
	transition: transform 0.25s ease;
}
.cc-auth[data-active="register"] .cc-auth__tab-indicator { transform: translateX(100%); }
.woocommerce .cc-auth button.cc-auth__tab,
.woocommerce .cc-auth button.cc-auth__tab:hover,
.woocommerce .cc-auth button.cc-auth__tab:focus {
	position: relative;
	z-index: 1;
	appearance: none;
	border: 0;
	background: transparent;
	box-shadow: none;
	margin: 0;
	padding: 11px 0;
	min-height: 0;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: normal;
	color: var(--cc-muted);
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.2s;
}
.woocommerce .cc-auth button.cc-auth__tab.is-active { color: #fff; }
.woocommerce .cc-auth button.cc-auth__tab:focus-visible { outline: 2px solid var(--cc-brand); outline-offset: 2px; }

/* Panels */
.cc-auth__panel { animation: cc-fade 0.25s ease; }
@keyframes cc-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.woocommerce .cc-auth form.cc-form { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }

/* Fields */
.woocommerce .cc-auth .cc-field { margin: 0 0 16px; padding: 0; }
.woocommerce .cc-auth .cc-field > label,
.woocommerce .cc-auth .cc-otp > label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--cc-text);
}
.woocommerce .cc-auth input.cc-input {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	font: inherit;
	font-size: 15px;
	color: var(--cc-text);
	background: #fff;
	border: 1px solid var(--cc-border);
	border-radius: var(--cc-radius);
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.woocommerce .cc-auth input.cc-input::placeholder { color: #b0a59f; }
.woocommerce .cc-auth input.cc-input:focus {
	outline: none;
	border-color: var(--cc-brand);
	box-shadow: 0 0 0 3px var(--cc-brand-soft);
}
.woocommerce .cc-auth input.cc-input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #fff inset;
	-webkit-text-fill-color: var(--cc-text);
}

/* Password show/hide */
.cc-auth .cc-pass { position: relative; display: block; }
.woocommerce .cc-auth .cc-pass input.cc-input { padding-right: 70px; }
.woocommerce .cc-auth button.cc-pass__toggle,
.woocommerce .cc-auth button.cc-pass__toggle:hover {
	position: absolute;
	top: 50%; right: 8px;
	transform: translateY(-50%);
	margin: 0;
	padding: 6px 10px;
	min-height: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--cc-brand);
	cursor: pointer;
	border-radius: 8px;
}
.woocommerce .cc-auth button.cc-pass__toggle:hover { background: var(--cc-soft); }

/* Inline (input + button) */
.cc-auth .cc-inline { display: flex; gap: 8px; }
.cc-auth .cc-inline input.cc-input { flex: 1 1 auto; min-width: 0; }

/* Buttons */
.woocommerce .cc-auth button.cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 20px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	color: #fff;
	background: var(--cc-brand);
	border: 1px solid var(--cc-brand);
	border-radius: var(--cc-radius);
	box-shadow: none;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.woocommerce .cc-auth button.cc-btn:hover { background: var(--cc-brand-dark); border-color: var(--cc-brand-dark); color: #fff; }
.woocommerce .cc-auth button.cc-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--cc-brand-soft); }
.woocommerce .cc-auth button.cc-btn:disabled,
.woocommerce .cc-auth button.cc-btn.disabled { opacity: 0.55; cursor: not-allowed; }

.woocommerce .cc-auth .cc-inline button.cc-btn {
	flex: 0 0 auto;
	width: auto;
	min-width: 112px;
	height: 48px;
	padding: 0 16px;
	font-size: 14px;
	white-space: nowrap;
}
.woocommerce .cc-auth button.cc-btn--ghost { background: #fff; color: var(--cc-brand); }
.woocommerce .cc-auth button.cc-btn--ghost:hover { background: var(--cc-soft); color: var(--cc-brand); }
.woocommerce .cc-auth button.cc-btn--ghost:disabled:hover { background: #fff; }

/* OTP */
.cc-auth .cc-otp {
	margin-top: 12px;
	padding: 14px;
	background: var(--cc-soft);
	border-radius: var(--cc-radius);
}
.woocommerce .cc-auth input.cc-otp__input {
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.4em;
}
.woocommerce .cc-auth .cc-msg { margin: 8px 0 0; font-size: 13px; line-height: 1.45; }
.woocommerce .cc-auth .cc-msg:empty { display: none; }
.cc-auth .cc-msg.is-error { color: var(--cc-err); }
.cc-auth .cc-msg.is-success { color: var(--cc-ok); }

/* Verified state */
.woocommerce .cc-auth .is-verified #reg_email { border-color: var(--cc-ok); background: #f3faf3; }
.woocommerce .cc-auth .is-verified #cc-send-otp,
.woocommerce .cc-auth .is-verified #cc-send-otp:disabled {
	opacity: 1;
	color: var(--cc-ok);
	border-color: var(--cc-ok);
	background: #f3faf3;
}

/* Remember / forgot row */
.cc-auth .cc-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 20px;
	font-size: 14px;
}
.woocommerce .cc-auth .cc-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	color: var(--cc-text);
	cursor: pointer;
}
.cc-auth .cc-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--cc-brand); }

/* Links & small text */
.woocommerce .cc-auth a.cc-link,
.woocommerce .cc-auth .cc-switch a {
	color: var(--cc-brand);
	font-weight: 600;
	text-decoration: none;
}
.woocommerce .cc-auth a.cc-link:hover,
.woocommerce .cc-auth .cc-switch a:hover { text-decoration: underline; }
.woocommerce .cc-auth .cc-switch {
	margin: 22px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--cc-border);
	text-align: center;
	font-size: 14px;
	color: var(--cc-muted);
}
.woocommerce .cc-auth .cc-note,
.woocommerce .cc-auth .woocommerce-privacy-policy-text p {
	margin: 0 0 18px;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--cc-muted);
}
.woocommerce .cc-auth .woocommerce-privacy-policy-text a { color: var(--cc-brand); }

/* WooCommerce password strength meter */
.woocommerce .cc-auth .woocommerce-password-strength {
	margin-top: 8px;
	padding: 6px 10px;
	font-size: 12.5px;
	border-radius: 8px;
	text-align: left;
}
.woocommerce .cc-auth .woocommerce-password-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--cc-muted); }

/* Mobile */
@media (max-width: 480px) {
	.cc-auth { margin: 24px auto 48px; }
	.cc-auth__card { padding: 28px 20px 22px; border-radius: 16px; }
	.woocommerce .cc-auth .cc-auth__title { font-size: 24px; }
	.woocommerce .cc-auth .cc-inline button.cc-btn { min-width: 96px; padding: 0 12px; }
}

/* Overrides for site-wide custom CSS and WooCommerce's own eye icon */
body .woocommerce .cc-auth form.cc-form,
body .cc-auth form.woocommerce-form-login,
body .cc-auth form.woocommerce-form-register {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
}
.cc-auth .show-password-input { display: none !important; }

/* Woostify limits the login form to 50% width on desktop: undo it */
body .cc-auth form.woocommerce-form-login,
body .cc-auth form.woocommerce-form-register,
body.woocommerce-account .cc-auth .woocommerce-form.woocommerce-form-login,
body.woocommerce-account .cc-auth .woocommerce-form.woocommerce-form-register {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	clear: both;
}

/* Email label row with "Change email" */
.cc-auth .cc-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.woocommerce .cc-auth .cc-label-row label { margin: 0; font-size: 14px; font-weight: 500; color: var(--cc-text); }
.woocommerce .cc-auth button.cc-link-btn,
.woocommerce .cc-auth button.cc-link-btn:hover {
	margin: 0; padding: 0; min-height: 0; border: 0; background: none; box-shadow: none;
	font: inherit; font-size: 13px; font-weight: 600; color: var(--cc-brand); cursor: pointer; text-decoration: underline;
}
.woocommerce .cc-auth .is-locked #reg_email { background: var(--cc-soft); color: var(--cc-text); cursor: default; }
.woocommerce .cc-auth .is-locked #reg_email:focus { box-shadow: none; border-color: var(--cc-border); }
