/**
 * GreenPay Login — structural styles (theme/Elementor controls override).
 */

.gpl-login-wrapper {
	--gpl-gap: 1rem;
	--gpl-radius: 6px;
	max-width: 420px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.gpl-login-header {
	margin-bottom: var(--gpl-gap);
	text-align: center;
}

.gpl-login-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 600;
}

.gpl-login-logo__img {
	max-height: 48px;
	width: auto;
}

.gpl-login-message {
	margin-bottom: var(--gpl-gap);
	padding: 0.75rem 1rem;
	border-radius: var(--gpl-radius);
	font-size: 0.875rem;
}

.gpl-login-message.is-error {
	background: #fdecea;
	color: #611a15;
}

.gpl-login-message.is-success {
	background: #edf7ed;
	color: #1e4620;
}

.gpl-login-message.is-info {
	background: #e8f4fd;
	color: #0d3c61;
}

.gpl-login-message[hidden] {
	display: none;
}

.gpl-login-tabs {
	display: inline-flex;
	width: auto;
	max-width: 100%;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: var(--gpl-gap);
	border-bottom: 1px solid #e0e0e0;
	box-sizing: border-box;
}

.gpl-login-tab {
	flex: 0 1 auto;
	width: auto;
	padding: 0.75rem 1rem;
	border: none;
	border-bottom: 2px solid transparent;
	background: transparent;
	cursor: pointer;
	font: inherit;
	color: inherit;
	box-sizing: border-box;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, border-radius 0.2s ease;
}

.gpl-login-tab.is-active {
	font-weight: 600;
}

.gpl-login-panel.is-hidden {
	display: none;
}

.gpl-field {
	margin-bottom: var(--gpl-gap);
}

.gpl-field--pwd-forgot {
	margin-bottom: 0.75rem;
}

.gpl-pwd-forgot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35em;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.4;
	box-sizing: border-box;
}

.gpl-pwd-forgot__text {
	color: inherit;
}

.gpl-pwd-forgot__link {
	display: inline;
	padding: 0;
	border: none;
	background: none;
	font: inherit;
	color: #1a7f37;
	text-decoration: underline;
	cursor: pointer;
	box-sizing: border-box;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.gpl-pwd-forgot__link:hover {
	color: #145c28;
}

.gpl-field--pwd-register {
	margin-top: 0.75rem;
	margin-bottom: 0;
}

.gpl-pwd-register {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.35em;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.4;
	box-sizing: border-box;
}

.gpl-pwd-register__text {
	color: inherit;
}

.gpl-pwd-register__link {
	display: inline;
	padding: 0;
	border: none;
	background: none;
	font: inherit;
	color: #1a7f37;
	text-decoration: underline;
	cursor: pointer;
	box-sizing: border-box;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.gpl-pwd-register__link:hover {
	color: #145c28;
}

.gpl-login-form--password .gpl-button--submit {
	margin-top: 0;
}

.gpl-login-panels {
	margin-top: 0;
}

.gpl-label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.875rem;
}

.gpl-input {
	display: block;
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: var(--gpl-radius);
	font: inherit;
	box-sizing: border-box;
}

.gpl-input::placeholder {
	opacity: 0.65;
}

.gpl-input:focus::placeholder {
	opacity: 0.45;
}

.gpl-input:focus {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.gpl-input.is-disabled,
.gpl-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.gpl-otp-inputs {
	display: flex;
	gap: 0.5rem;
	width: 100%;
	justify-content: space-between;
	direction: ltr;
	unicode-bidi: isolate;
}

.gpl-input--otp-digit {
	flex: 1 1 0;
	width: auto;
	min-width: 2.25rem;
	min-height: 2.75rem;
	text-align: center;
	direction: ltr;
	unicode-bidi: isolate;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gpl-otp-verify-group.is-hidden {
	display: none;
}

.gpl-otp-step.is-hidden {
	display: none;
}

.gpl-otp-step-title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 600;
}

.gpl-otp-step-description {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	opacity: 0.9;
}

.gpl-otp-step-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	margin: -0.25rem 0 0.5rem;
}

.gpl-otp-meta-link {
	background: none !important;
	border: none !important;
	padding: 0;
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
	text-decoration: underline;
	color: inherit !important;
}

.gpl-otp-meta-link:hover,
.gpl-otp-meta-link:focus {
	background: none !important;
	color: inherit !important;
	border-color: transparent !important;
	text-decoration: underline;
}

.gpl-otp-meta-link:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	text-decoration: none;
}

.gpl-button {
	display: inline-block;
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid transparent !important;
	border-radius: var(--gpl-radius) !important;
	font: inherit;
	cursor: pointer;
	margin-top: 0.5rem;
	box-sizing: border-box;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
}

.gpl-button--primary {
	background: #1a7f37 !important;
	color: #fff !important;
}

.gpl-button--primary:hover,
.gpl-button--primary:focus {
	background: #155f2a !important;
	color: #fff !important;
	border-color: transparent !important;
	text-decoration: none;
}

.gpl-button--secondary {
	background: #f0f0f0 !important;
	color: inherit !important;
}

.gpl-button--secondary:hover,
.gpl-button--secondary:focus {
	background: #e0e0e0 !important;
	color: inherit !important;
	border-color: transparent !important;
	text-decoration: none;
}

/* Reset Hello Elementor pink theme defaults inside login wrapper */
.gpl-login-wrapper button,
.gpl-login-wrapper [type=submit],
.gpl-login-wrapper [type=button] {
	background-color: transparent;
	border-color: transparent;
	color: inherit;
}

.gpl-login-wrapper button:hover,
.gpl-login-wrapper button:focus,
.gpl-login-wrapper [type=submit]:hover,
.gpl-login-wrapper [type=submit]:focus,
.gpl-login-wrapper [type=button]:hover,
.gpl-login-wrapper [type=button]:focus {
	border-color: transparent !important;
	color: inherit !important;
	text-decoration: none;
}

.gpl-login-form.is-submitting .gpl-button {
	pointer-events: none;
}

.gpl-login-view.is-hidden {
	display: none;
}

.gpl-view-title {
	margin: 0 0 var(--gpl-gap);
	font-size: 1.125rem;
	font-weight: 600;
}

.gpl-view-description {
	margin: -0.5rem 0 var(--gpl-gap);
	font-size: 0.9375rem;
	opacity: 0.9;
}

.gpl-reset-form.is-hidden {
	display: none;
}

.gpl-register-form.is-hidden {
	display: none;
}

.gpl-countdown {
	font-size: 0.8125rem;
	margin-top: 0.5rem;
	opacity: 0.85;
}

/* OTP Auto step transitions */
.gpl-otp-auto-step { transition: opacity 0.25s ease; }
.gpl-otp-auto-step.is-hidden { display: none; }
