/**
 * GatePass Front-end Login Styles
 *
 * @package GatePass
 */

/* Reset & Base Setup */
.gatepass-login-body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--gp-text);
	background-color: #f1fafe;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.gatepass-login-body * {
	box-sizing: border-box;
}

/* Page Wrapper */
.gatepass-wrapper {
	width: 100%;
	max-width: 440px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	animation: sgFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card Container */
.gatepass-card {
	width: 100%;
	background-color: var(--gp-bg);
	border: 1px solid var(--gp-border);
	border-radius: 18px;
	padding: 24px;
	box-shadow:
		0 4px 6px -1px rgba(0, 0, 0, 0.05),
		0 10px 20px -3px rgba(0, 0, 0, 0.04),
		0 0 1px 0 rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(8px);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gatepass-card:hover {
	transform: translateY(-2px);
	box-shadow:
		0 6px 12px -2px rgba(0, 0, 0, 0.05),
		0 14px 28px -4px rgba(0, 0, 0, 0.05),
		0 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* Logo container */
.gatepass-logo-container {
	display: flex;
	justify-content: center;
	margin-bottom: 28px;
}

.gatepass-logo-container img {
	max-height: 60px;
	max-width: 100%;
	object-fit: contain;
}

/* Lock SVG Icon styling */
.gatepass-default-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: rgba(116, 185, 255, 0.1);
	color: var(--gp-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.gatepass-card:hover .gatepass-default-icon {
	transform: scale(1.05) rotate(-5deg);
	background-color: rgba(116, 185, 255, 0.15);
}

.gatepass-default-icon svg {
	width: 28px;
	height: 28px;
}

/* Typography */
.gatepass-header {
	text-align: center;
	margin-bottom: 32px;
}

.gatepass-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--gp-text);
	margin: 0 0 8px 0;
	letter-spacing: -0.5px;
}

.gatepass-description {
	font-size: 14px;
	color: #636e72;
	line-height: 1.5;
	margin: 0;
}

/* Inputs & Form layout */
.gatepass-form {
	display: flex;
	flex-direction: column;
}

.gatepass-input-group {
	margin-bottom: 20px;
	position: relative;
}

.gatepass-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.gatepass-input {
	width: 100%;
	padding: 14px 44px 14px 16px;
	font-size: 15px;
	border: 1px solid var(--gp-border);
	border-radius: 10px;
	color: var(--gp-text);
	background-color: #fafbfc;
	font-family: inherit;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gatepass-input::placeholder {
	color: #b2bec3;
}

.gatepass-input:focus {
	outline: none;
	border-color: var(--gp-primary);
	background-color: #ffffff;
	box-shadow: 0 0 0 4px rgba(116, 185, 255, 0.18);
}

/* Screen reader text for accessibility */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Eye Toggle button */
.gatepass-toggle-btn {
	position: absolute;
	right: 12px;
	background: none;
	border: none;
	padding: 6px;
	cursor: pointer;
	color: #b2bec3;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: color 0.2s, background-color 0.2s;
}

.gatepass-toggle-btn:hover {
	color: var(--gp-text);
	background-color: rgba(0, 0, 0, 0.04);
}

.gatepass-toggle-btn:focus {
	outline: none;
	color: var(--gp-primary);
}

.eye-icon {
	width: 18px;
	height: 18px;
}

/* Error message box */
.gatepass-error-box {
	background-color: rgba(255, 118, 117, 0.08);
	border: 1px solid rgba(255, 118, 117, 0.18);
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	animation: sgShake 0.4s ease-in-out;
}

.error-alert-icon {
	color: var(--gp-error);
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.error-text {
	color: var(--gp-error);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

/* Submit Button */
.gatepass-submit-btn {
	width: 100%;
	padding: 14px;
	background-color: var(--gp-primary);
	color: #ffffff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	transition: all 0.2s ease;
	box-shadow: 0 4px 12px rgba(116, 185, 255, 0.2);
}

/* Hover darker primary */
.gatepass-submit-btn:hover {
	filter: brightness(0.92);
	box-shadow: 0 6px 16px rgba(116, 185, 255, 0.3);
}

.gatepass-submit-btn:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(116, 185, 255, 0.35);
}

.gatepass-submit-btn:active {
	transform: scale(0.98);
}

/* Button Loading State */
.btn-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: sgSpin 0.8s linear infinite;
}

/* Footer layout */
.gatepass-footer {
	margin-top: 32px;
	text-align: center;
}

.gatepass-footer p {
	font-size: 12px;
	color: #b2bec3;
	margin: 0;
}

/* Animations */
@keyframes sgFadeInUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes sgShake {

	0%,
	100% {
		transform: translateX(0);
	}

	20%,
	60% {
		transform: translateX(-4px);
	}

	40%,
	80% {
		transform: translateX(4px);
	}
}

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

/* Request Password Styles */
.gatepass-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--gp-border);
	padding-bottom: 12px;
	justify-content: center;
}

.gp-tab-btn {
	background: none;
	border: none;
	color: #636e72;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 16px;
	cursor: pointer;
	border-radius: 8px;
	font-family: inherit;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gp-tab-btn:hover {
	color: var(--gp-text);
	background-color: rgba(116, 185, 255, 0.08);
}

.gp-tab-btn.active {
	color: #ffffff;
	background-color: var(--gp-primary);
	box-shadow: 0 4px 10px rgba(116, 185, 255, 0.2);
}

.gatepass-textarea {
	min-height: 80px;
	resize: vertical;
}

.gatepass-success-box {
	background-color: rgba(0, 184, 148, 0.08);
	border: 1px solid rgba(0, 184, 148, 0.18);
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	animation: sgFadeIn 0.4s ease-in-out;
}

.success-text {
	color: var(--gp-success);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

@keyframes sgFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* CAPTCHA Widget Styling */
.gatepass-captcha-wrapper {
	margin-bottom: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}