/* ==========================================================
   Sri Ganga Vilas – Account: Sign in / Sign up
   (My Account page when the visitor is not logged in)
   ----------------------------------------------------------
   1. Colours & fonts
   2. Page layout (form left, picture right)
   3. Logo
   4. Title + intro text
   5. Fields
   6. Remember me + Forgot password
   7. Button
   8. "Or" line + social buttons
   9. Sign in / Sign up switch
   10. Messages + Lost password page
   11. Tablet & mobile
   ========================================================== */


/* ----------------------------------------------------------
   1. Colours & fonts
   ---------------------------------------------------------- */
.gv-auth {
	--gv-auth-text: #0c1421;
	--gv-auth-muted: #313957;
	--gv-auth-hint: #8897ad;
	--gv-auth-field: #f7fbff;
	--gv-auth-border: #d4d7e3;
	--gv-auth-red: #ac262d;
	--gv-auth-red-dark: #8c1f25;
	--gv-auth-font: 'Roboto', 'Manrope', sans-serif;
	--gv-auth-title-font: ui-rounded, 'SF Pro Rounded', 'Manrope', 'Roboto', sans-serif;
}


/* ----------------------------------------------------------
   2. Page layout
   ---------------------------------------------------------- */
body.gv-auth-page {
	background: #fff;
}

.gv-auth {
	display: grid;
	grid-template-columns: minmax(0, 733fr) minmax(0, 680fr);
	min-height: 100vh;
	min-height: 100dvh;
	padding: 27px 27px 27px 0;
	font-family: var(--gv-auth-font);
	color: var(--gv-auth-text);
}

.gv-auth__panel {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 110px 24px;
}

.gv-auth__content {
	width: 100%;
	max-width: 324px;
}

/* Picture on the right */
.gv-auth__art {
	overflow: hidden;
	border-radius: 20px;
	background: #e9dccb;
}

.gv-auth__art img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}


/* ----------------------------------------------------------
   3. Logo
   ---------------------------------------------------------- */
.gv-auth__logo {
	position: absolute;
	top: 16px;
	left: 59px;
}

.gv-auth__logo img {
	width: 105px;
	height: auto;
}


/* ----------------------------------------------------------
   4. Title + intro text
   ---------------------------------------------------------- */
.gv-auth__title {
	margin: 0;
	font-family: var(--gv-auth-title-font);
	font-weight: 600;
	font-size: 30px;
	line-height: 1;
	letter-spacing: 0.3px;
	color: var(--gv-auth-text);
}

.gv-auth__intro {
	margin: 25px -40px 0 0; /* a little wider than the form, like Figma */
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: 0.16px;
	color: var(--gv-auth-muted);
}


/* ----------------------------------------------------------
   5. Fields
   ---------------------------------------------------------- */
.gv-auth .woocommerce form.gv-auth-form {
	margin: 41px 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	text-align: left;
}

.gv-field {
	display: flex;
	flex-direction: column;
	gap: 6.67px;
	margin: 0 0 20px;
}

.gv-field label,
.gv-auth .woocommerce-ResetPassword label {
	font-size: 13.33px;
	line-height: 1;
	letter-spacing: 0.13px;
	color: var(--gv-auth-text);
}

.gv-auth-page .gv-auth input.input-text {
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 13.33px;
	background: var(--gv-auth-field);
	border: 0.833px solid var(--gv-auth-border);
	border-radius: 10px;
	box-shadow: none;
	font-family: var(--gv-auth-font);
	font-size: 13.33px;
	letter-spacing: 0.13px;
	color: var(--gv-auth-text);
	outline: 0;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gv-auth-page .gv-auth input.input-text::placeholder {
	color: var(--gv-auth-hint);
	opacity: 1;
}

.gv-auth-page .gv-auth input.input-text:focus {
	border-color: var(--gv-auth-red);
	box-shadow: 0 0 0 3px rgba(172, 38, 45, 0.12);
}

/* Show / hide password eye (added by WooCommerce) */
.gv-auth .woocommerce form .password-input {
	position: relative;
	display: block;
	width: 100%;
}

.gv-auth-page .gv-auth .password-input input.input-text {
	padding-right: 40px;
}

.gv-auth .woocommerce form .show-password-input {
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	color: var(--gv-auth-hint);
}


/* ----------------------------------------------------------
   6. Remember me + Forgot password
   ---------------------------------------------------------- */
.gv-auth-form__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: -8px; /* 12px under the password box */
}

.gv-auth-check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
	font-size: 13.33px;
	line-height: 1;
	color: var(--gv-auth-muted);
	cursor: pointer;
}

.gv-auth-check input {
	width: 15px;
	height: 15px;
	margin: 0;
	accent-color: var(--gv-auth-red);
}

.gv-auth__link {
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.14px;
	color: #aa2930;
}

.gv-auth__link:hover {
	color: var(--gv-auth-red-dark);
	text-decoration: underline;
}


/* ----------------------------------------------------------
   7. Button
   ---------------------------------------------------------- */
.gv-auth-page .gv-auth button.gv-auth__btn,
.gv-auth-page .gv-auth .woocommerce-ResetPassword button.button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 43.33px;
	margin: 12px 0 0;
	padding: 0 16px;
	background: var(--gv-auth-red);
	border: 0;
	border-radius: 10px;
	font-family: var(--gv-auth-font);
	font-weight: 400;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 0.16px;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s ease;
}

.gv-auth-page .gv-auth button.gv-auth__btn:hover,
.gv-auth-page .gv-auth .woocommerce-ResetPassword button.button:hover {
	background: var(--gv-auth-red-dark);
	color: #fff;
}

/* Sign up form has no "Forgot password" row above the button */
.gv-auth-box--signup .gv-auth__btn {
	margin-top: 28px;
}

.gv-auth__note {
	margin: 0;
	font-size: 13.33px;
	line-height: 1.5;
	color: var(--gv-auth-muted);
}

/* Privacy text WooCommerce adds under the sign up fields */
.gv-auth .woocommerce-privacy-policy-text p {
	margin: 16px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--gv-auth-hint);
}

.gv-auth .woocommerce-privacy-policy-text a {
	color: var(--gv-auth-red);
}


/* ----------------------------------------------------------
   8. "Or" line + social buttons (only when a social login
      plugin is active)
   ---------------------------------------------------------- */
.gv-auth__or {
	display: flex;
	align-items: center;
	gap: 13.33px;
	margin-top: 40px;
	padding: 8.33px 0;
	font-size: 13.33px;
	line-height: 1;
	color: #294957;
}

.gv-auth__or::before,
.gv-auth__or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #cfdfe2;
}

.gv-auth__social {
	display: flex;
	flex-direction: column;
	gap: 13.33px;
	margin-top: 20px;
}


/* ----------------------------------------------------------
   9. Sign in / Sign up switch
   ---------------------------------------------------------- */
.gv-auth-box--signup,
.gv-auth-forms.is-signup .gv-auth-box--login {
	display: none;
}

.gv-auth-forms.is-signup .gv-auth-box--signup {
	display: block;
}

.gv-auth__switch {
	margin: 40px 0 0;
	font-size: 15px;
	line-height: 1.6;
	letter-spacing: 0.15px;
	text-align: center;
	color: var(--gv-auth-muted);
}

.gv-auth__switch a {
	color: var(--gv-auth-red);
}

.gv-auth__switch a:hover {
	text-decoration: underline;
}


/* ----------------------------------------------------------
   10. Messages + Lost password page
   ---------------------------------------------------------- */
.gv-auth .woocommerce-error,
.gv-auth .woocommerce-message,
.gv-auth .woocommerce-info {
	margin: 0 0 24px;
	padding: 12px 14px;
	background: #fdf3f3;
	border: 1px solid #f1cfd1;
	border-radius: 10px;
	font-size: 13.33px;
	line-height: 1.5;
	color: #7a1c21;
	list-style: none;
}

.gv-auth .woocommerce-message,
.gv-auth .woocommerce-info {
	background: #f3f9f4;
	border-color: #cfe5d3;
	color: #24563a;
}

.gv-auth .woocommerce-error::before,
.gv-auth .woocommerce-message::before,
.gv-auth .woocommerce-info::before {
	display: none;
}

.gv-auth .woocommerce-error li {
	margin: 0;
}

/* Lost password: WooCommerce's own form, same look */
.gv-auth .woocommerce-ResetPassword {
	margin: 0;
	padding: 0;
	border: 0;
}

.gv-auth .woocommerce-ResetPassword > p:first-child {
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--gv-auth-muted);
}

.gv-auth .woocommerce-ResetPassword .form-row {
	float: none;
	width: 100%;
	margin: 0 0 20px;
	padding: 0;
}

.gv-auth .woocommerce-ResetPassword .form-row label {
	display: block;
	margin-bottom: 6.67px;
	line-height: 1;
}

.gv-auth .woocommerce-ResetPassword .clear {
	display: none;
}

.gv-auth .woocommerce-ResetPassword p:last-of-type {
	margin: 0;
}


/* ----------------------------------------------------------
   11. Tablet & mobile
   ---------------------------------------------------------- */

/* Small laptop: logo closer to the edge */
@media (max-width: 1100px) {
	.gv-auth__logo {
		left: 32px;
	}
}

/* Tablet portrait & mobile: one column, no picture */
@media (max-width: 900px) {
	.gv-auth {
		grid-template-columns: minmax(0, 1fr);
		padding: 0;
	}

	.gv-auth__art {
		display: none;
	}

	.gv-auth__panel {
		flex-direction: column;
		justify-content: flex-start;
		padding: 32px 20px 48px;
	}

	.gv-auth__logo {
		position: static;
		margin: 0 0 48px;
	}

	.gv-auth__logo img {
		width: 88px;
	}

	.gv-auth__content {
		max-width: 400px;
	}

	.gv-auth__intro {
		margin-right: 0;
	}
}

@media (max-width: 400px) {
	.gv-auth__title {
		font-size: 26px;
	}

	.gv-auth__intro {
		margin-top: 18px;
		font-size: 15px;
	}

	.gv-auth .woocommerce form.gv-auth-form {
		margin-top: 32px;
	}
}