/*
 Minimal styles for the custom login form. The card, fields, buttons and the
 Lost Password link are styled by your own theme CSS (.login-form__input, .btn,
 .login-form__forgot), so this file only adds what that CSS does not cover:
 the first and last name row on sign up, and the notice messages.

 The white card and its rounded corners come from the Elementor container you
 place the [esg_login_form] shortcode in, so nothing here adds a background.
*/

#esg-auth {
	margin: 0 auto;
	box-sizing: border-box;
}

#esg-auth .login-form__input {
	box-sizing: border-box;
}

.esg-login-form,
.esg-register-form {
	margin: 0;
}

/* First and last name side by side on the sign up view */
.login-form__row {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
}

.login-form__row .login-form__input {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	box-sizing: border-box;
}

@media (max-width: 480px) {
	.login-form__row {
		flex-direction: column;
		gap: 20px;
	}
}

/* Notices for login and sign up errors */
.esg-auth-msg {
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 15px;
}

.esg-auth-error {
	background: #fff2f2;
	color: #8a1f1f;
	border-left: 4px solid #c0392b;
}

.esg-auth-success {
	background: #eef7f0;
	color: #1e5631;
	border-left: 4px solid #002448;
}

.esg-auth-info {
	background: #eef3f9;
	color: #1f2933;
	border-left: 4px solid #002448;
}

.esg-auth-loggedin {
	text-align: center;
}

/* Lost password view: hint, math question, and honeypot */
.login-form__hint {
	margin: 0 0 18px;
	color: #5b6b7a;
	font-size: 14px;
	line-height: 1.55;
}
.login-form__captcha-label {
	display: block;
	margin-bottom: 8px;
	color: #002448;
	font-size: 15px;
	font-weight: 700;
}
.login-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Membership dropdowns on the sign up view: match the text inputs, add a caret */
#esg-auth .login-form__select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235b6b7a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
	cursor: pointer;
}
#esg-auth .esg-register-form .login-form__group {
	margin-bottom: 15px;
}

/* Two-column rows: let grouped fields (selects/inputs) sit side by side */
#esg-auth .login-form__row > .login-form__group {
	flex: 1 1 0;
	min-width: 0;
	margin-bottom: 0;
}
#esg-auth .login-form__row > .login-form__group .login-form__input {
	width: 100%;
}
@media (max-width: 480px) {
	#esg-auth .login-form__row {
		flex-direction: column;
		gap: 15px;
	}
}

/* Membership heading */
#esg-auth .login-form__title {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 800;
	color: #002448;
	text-align: center;
}

/* Checkbox group: "What got you interested" */
#esg-auth .login-form__checkgroup {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px;
	border: 1px solid #e1e6ec;
	border-radius: 12px;
	background: #f7f9fb;
}
#esg-auth .login-form__legend {
	font-weight: 700;
	font-size: 14px;
	color: #002448;
}
#esg-auth .login-form__hint {
	font-size: 16px;
	color: #5b6b7a;
	margin-top: -4px;
}

/* Anchor-style buttons (e.g. Back to login) keep white text on hover. */
#esg-auth a.btn--login,
#esg-auth a.btn--login:hover,
#esg-auth a.btn--login:focus,
#esg-auth a.btn--login:active {
	color: #fff !important;
}
#esg-auth .login-form__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: #1f2933;
	cursor: pointer;
}
#esg-auth .login-form__check input {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	flex: none;
}

/* Password group: same boxed look as the interest group */
#esg-auth .login-form__passgroup {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid #e1e6ec;
	border-radius: 12px;
	background: #f7f9fb;
	margin-bottom: 15px;
}
#esg-auth .login-form__passgroup .login-form__group {
	margin-bottom: 0;
}

/* ---- Post-registration Thank You panel ---- */
.esg-auth-thankyou {
	text-align: center;
	max-width: 620px;
	margin: 0 auto;
	padding: 10px 16px 24px;
}
.esg-thankyou-img {
	display: block;
	max-width: 260px;
	height: auto;
	margin: 0 auto 24px;
}
.esg-thankyou-title {
	color: #002448;
	font-weight: 800;
	font-size: 34px;
	line-height: 1.2;
	margin: 0 0 18px;
}
.esg-thankyou-text {
	color: #1f2933;
	font-size: 16px;
	line-height: 1.7;
	margin: 0 0 28px;
}
.esg-thankyou-text p {
	margin: 0 0 12px;
}
.esg-thankyou-text p:last-child {
	margin-bottom: 0;
}
.esg-thankyou-actions {
	display: flex;
	justify-content: center;
}
.esg-thankyou-btn {
	display: inline-block;
	background: #002448;
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	padding: 13px 48px;
	border-radius: 999px;
	transition: background 0.2s ease;
}
.esg-thankyou-btn:hover,
.esg-thankyou-btn:focus {
	background: #003a6e;
	color: #fff !important;
}
@media (max-width: 600px) {
	.esg-thankyou-title { font-size: 28px; }
	.esg-thankyou-btn { width: 100%; padding: 14px 0; }
}

/* ---- Register form validation states ---- */
.esg-register-form .login-form__input.zap-invalid {
	border-color: #d63638 !important;
	box-shadow: 0 0 0 1px rgba(214, 54, 56, 0.25) !important;
}
.esg-register-form .login-form__checkgroup.zap-invalid {
	border-radius: 8px;
	box-shadow: 0 0 0 1px rgba(214, 54, 56, 0.4);
	padding: 10px 12px;
}
.esg-register-form .login-form__checkgroup.zap-invalid .login-form__legend {
	color: #d63638;
}
.esg-register-form .login-form__error {
	color: #d63638;
	font-size: 13px;
	line-height: 1.4;
	margin: 6px 2px 2px;
}
