/* Custom Login 54 — scoped to .cls54-* */

.cls54-wrap {
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
}

/* ---- Notices ---- */
.cls54-notice {
	padding: 0.8rem 1rem;
	border-radius: 5px;
	margin-bottom: 1.25rem;
	font-size: 0.9rem;
	line-height: 1.5;
}
.cls54-notice--error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.cls54-notice--warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.cls54-notice--success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.cls54-notice--info    { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }

/* ---- Inline message (Ajax) ---- */
.cls54-msg {
	padding: 0.75rem 1rem;
	border-radius: 5px;
	margin-bottom: 1rem;
	font-size: 0.88rem;
	line-height: 1.5;
}
.cls54-msg--error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.cls54-msg--success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }

/* ---- Form desc ---- */
.cls54-form-desc {
	margin: 0 0 1.25rem;
	color: #555;
	font-size: 0.9rem;
	line-height: 1.6;
}

/* ---- Fields ---- */
.cls54-field {
	margin-bottom: 1.1rem;
}
.cls54-field label {
	display: block;
	font-weight: 600;
	font-size: 0.875rem;
	margin-bottom: 0.35rem;
	color: #333;
}
.cls54-field input[type="text"],
.cls54-field input[type="email"],
.cls54-field input[type="password"],
.cls54-field input[type="url"] {
	display: block;
	width: 100%;
	padding: 0.6rem 0.85rem;
	font-size: 1rem;
	border: 1px solid #d1d5db;
	border-radius: 5px;
	background: #fff;
	color: #111;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
}
.cls54-field input[type="text"]:focus,
.cls54-field input[type="email"]:focus,
.cls54-field input[type="password"]:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.cls54-field input[type="text"].cls54-input-error,
.cls54-field input[type="email"].cls54-input-error,
.cls54-field input[type="password"].cls54-input-error {
	border-color: #ef4444;
}

/* Row layout (remember + forgot) */
.cls54-field--row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.cls54-field--center {
	text-align: center;
}

/* Remember me */
.cls54-remember-label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.875rem;
	color: #444;
	cursor: pointer;
	font-weight: normal;
}
.cls54-remember-label input[type="checkbox"] {
	width: auto;
	margin: 0;
	cursor: pointer;
}

/* Links */
.cls54-lp-link,
.cls54-back-link {
	font-size: 0.875rem;
	color: #2563eb;
	text-decoration: none;
	transition: color 0.15s;
}
.cls54-lp-link:hover,
.cls54-back-link:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

/* ---- Password toggle ---- */
.cls54-password-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
}
.cls54-password-wrap input {
	padding-right: 2.75rem !important;
	flex: 1;
}
.cls54-toggle-pw {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	background: none;
	border: none;
	cursor: pointer;
	color: #6b7280;
	padding: 0;
	transition: color 0.15s;
}
.cls54-toggle-pw:hover { color: #111; }

/* ---- Password strength ---- */
.cls54-strength-wrap {
	margin-top: 0.5rem;
}
.cls54-strength-bar {
	height: 4px;
	background: #e5e7eb;
	border-radius: 2px;
	overflow: hidden;
}
.cls54-strength-fill {
	height: 100%;
	width: 0;
	border-radius: 2px;
	transition: width 0.3s, background 0.3s;
}
.cls54-strength-label {
	display: block;
	font-size: 0.78rem;
	margin-top: 0.25rem;
	color: #6b7280;
	min-height: 1.1em;
}

/* Strength levels */
.cls54-s0 .cls54-strength-fill { width: 20%; background: #ef4444; }
.cls54-s1 .cls54-strength-fill { width: 40%; background: #f97316; }
.cls54-s2 .cls54-strength-fill { width: 60%; background: #eab308; }
.cls54-s3 .cls54-strength-fill { width: 80%; background: #84cc16; }
.cls54-s4 .cls54-strength-fill { width: 100%; background: #22c55e; }

/* ---- Submit button ---- */
.cls54-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.7rem 1rem;
	background: #2563eb;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.15s, opacity 0.15s;
	line-height: 1;
}
.cls54-btn:hover    { background: #1d4ed8; }
.cls54-btn:focus    { outline: 3px solid rgba(37, 99, 235, 0.4); outline-offset: 2px; }
.cls54-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Spinner */
.cls54-btn-spinner {
	display: inline-block;
	width: 16px !important;
	height: 16px !important;
	border: 2px solid rgba(255,255,255,0.35) !important;
	border-top-color: #fff !important;
	border-radius: 50% !important;
	animation: cls54-spin 0.7s linear infinite !important;
	animation-play-state: running !important;
	flex-shrink: 0;
	box-sizing: border-box;
}
@keyframes cls54-spin {
	to { transform: rotate(360deg); }
}

/* ---- Captcha ---- */
.cls54-captcha-wrap {
	margin-bottom: 1rem;
}

/* ---- Already logged in ---- */
.cls54-already-logged-in {
	text-align: center;
	color: #555;
	font-size: 0.95rem;
}
