/* ========================================
   Variables (Monochrome/Gray theme)
   ======================================== */

:root {
	--primary-color: #374151; /* Dark gray primary */
	--primary-dark: #111827;  /* Near black hover */
	--error-color: #dc2626;   /* Red for alert/errors */
	--text-primary: #111827;
	--text-secondary: #4b5563;
	--text-muted: #9ca3af;
	--border-color: #d1d5db;
	--bg-white: #ffffff;
	--radius-md: 6px;
}

/* ========================================
   Base Layout & Wrapper Constraints (No border, shadow, fixed width, overflow)
   ======================================== */

.smartpay-login-page {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	padding: 0;
}

.smartpay-login-page * {
	box-sizing: border-box;
}

.smartpay-login-page .login-container {
	width: 100%;
	max-width: 100%;
}

.smartpay-login-page .login-form-wrapper {
	background: transparent;
	border-radius: 0;
	padding: 24px 0;
	border: none;
	box-shadow: none;
	width: 100%;
	max-width: 100%;
}

.smartpay-login-page .login-form-container {
	width: 100%;
	max-width: 100%;
	margin: 0;
}

/* ========================================
   Form Typography & Elements
   ======================================== */

.smartpay-login-page .form-header {
	margin-bottom: 24px;
}

.smartpay-login-page .form-header h1 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0 0 8px;
}

.smartpay-login-page .form-header p {
	font-size: 0.95rem;
	color: var(--text-secondary);
	margin: 0;
}

/* Form Groups & Inputs */
.smartpay-login-page .login-form .form-group {
	margin-bottom: 20px;
}

.smartpay-login-page .login-form .form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--text-primary);
	font-size: 0.938rem;
}

.smartpay-login-page .login-form .form-control {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	font-size: 1rem;
	background-color: var(--bg-white);
	color: var(--text-primary);
	transition: border-color 0.2s ease;
	font-family: inherit;
}

.smartpay-login-page .login-form .form-control:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: none;
}

.smartpay-login-page .login-form .form-control.with-icon {
	padding-left: 44px;
}

/* Icons styling */
.smartpay-login-page .input-with-icon {
	position: relative;
}

.smartpay-login-page .input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	pointer-events: none;
	z-index: 1;
}

/* Password Toggle */
.smartpay-login-page .password-input-wrapper {
	position: relative;
}

.smartpay-login-page .password-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: var(--text-muted);
	transition: color 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.smartpay-login-page .password-toggle:hover {
	color: var(--text-primary);
}

.smartpay-login-page .password-toggle:focus {
	outline: none;
}

.smartpay-login-page .required {
	color: var(--error-color);
	margin-left: 2px;
}

.smartpay-login-page .error-message {
	display: none;
	color: var(--error-color);
	font-size: 0.875rem;
	margin-top: 6px;
	font-weight: 500;
}

/* ========================================
   Checkboxes & Links
   ======================================== */

.smartpay-login-page .form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.smartpay-login-page .checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
	font-size: 0.938rem;
}

.smartpay-login-page .checkbox-label input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.smartpay-login-page .checkbox-custom {
	width: 18px;
	height: 18px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background: var(--bg-white);
	flex-shrink: 0;
	transition: all 0.2s ease;
	position: relative;
}

.smartpay-login-page .checkbox-label:hover .checkbox-custom {
	border-color: var(--primary-color);
}

.smartpay-login-page .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
	background: var(--primary-color);
	border-color: var(--primary-color);
}

.smartpay-login-page .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.smartpay-login-page .checkbox-text {
	color: var(--text-secondary);
}

.smartpay-login-page .forgot-password {
	font-size: 0.938rem;
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
}

.smartpay-login-page .forgot-password:hover {
	color: var(--primary-dark);
	text-decoration: underline;
}

/* ========================================
   Buttons (No Gradient, No Shadow, Static hover)
   ======================================== */

.smartpay-login-page .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 24px;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: background-color 0.2s ease;
	font-family: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.smartpay-login-page .btn-primary {
	background: var(--primary-color);
	color: white;
	box-shadow: none;
}

.smartpay-login-page .btn-primary:hover:not(:disabled) {
	background: var(--primary-dark);
	transform: none;
	box-shadow: none;
}

.smartpay-login-page .btn-full {
	width: 100%;
}

.smartpay-login-page .btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.smartpay-login-page .btn-arrow {
	transition: transform 0.2s ease;
}

.smartpay-login-page .btn:hover:not(:disabled) .btn-arrow {
	transform: translateX(3px);
}

/* ========================================
   Alerts
   ======================================== */

.smartpay-login-page .alert {
	padding: 14px 18px;
	border-radius: var(--radius-md);
	font-size: 0.938rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 16px 0;
}

.smartpay-login-page .alert-success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.smartpay-login-page .alert-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

/* ========================================
   Footer
   ======================================== */

.smartpay-login-page .form-footer {
	text-align: center;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--border-color);
}

.smartpay-login-page .form-footer p {
	font-size: 0.938rem;
	color: var(--text-secondary);
	margin: 0;
}

.smartpay-login-page .form-footer a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
}

.smartpay-login-page .form-footer a:hover {
	color: var(--primary-dark);
	text-decoration: underline;
}
