/* ===== Reset ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Root Variables (matching stashpatrick.show) ===== */
:root {
  --bs-blue: #0d6efd;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-orange: #fd7e14;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;
  --bs-primary: #0d6efd;
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-body-color: #212529;
  --bs-body-bg: #fff;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --primary-bg-color: #8bc34a;
  --primary-bg-hover: #76a83c;
  --primary-bg-border: #8bc34a;
  --primary09: rgba(140, 195, 74, 0.9);
  --dark-body: #2c2f3e;
  --dark-theme: rgba(0, 0, 0, 0.3);
  --dark-bg: rgba(0, 0, 0, 0.2);
  --dark-border: rgba(255, 255, 255, 0.15);
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--bs-body-font-family);
  font-size: 16px;
  font-weight: var(--bs-body-font-weight);
  line-height: var(--bs-body-line-height);
  color: var(--bs-body-color);
  background-color: #F3F3FA;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  height: 100%;
  transform: scale(0.85);
  transform-origin: center center;
}

/* ===== Page Wrapper ===== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

/* ===== Leprechaun Character ===== */
.character-wrapper {
  position: relative;
  width: 380px;
  height: 220px;
  margin-bottom: -34px;
  z-index: 2;
  pointer-events: none;
}

.character-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== Card ===== */
.card-body {
  background: var(--bs-white);
  border-radius: 12px;
  padding: 40px 32px 30px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  border: 1px solid #e0e0e0;
}

/* ===== Title ===== */
.login100-form-title {
  display: block;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 30px;
  font-weight: 400;
  font-style: normal;
  color: #3a3a3a;
  line-height: 1.2;
  padding-bottom: 24px;
}


/* ===== Wrap Input ===== */
.wrap-input100 {
  width: 100%;
  position: relative;
  margin-bottom: 10px;
  cursor: text;
}

.wrap-input100 .input100 {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #212529;
  line-height: 1.2;
  display: block;
  width: 100%;
  height: 48px;
  background: #fff;
  padding: 0 12px 0 40px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  outline: none;
  caret-color: #212529 !important;
  transition: background-color 0.2s, border-color 0.2s;
}

.wrap-input100 .input100:focus {
  border-color: #8fbd56;
  caret-color: #212529 !important;
}

/* Ensure focus span doesn't block clicks */
.focus-input100 {
  pointer-events: none;
}

/* ===== Entered / Autofilled Username & Password (matches exact site style) ===== */
#loginUsername:not(:placeholder-shown),
#loginPassword:not(:placeholder-shown),
#loginUsername.has-value,
#loginPassword.has-value,
#loginUsername:-webkit-autofill,
#loginPassword:-webkit-autofill,
#loginUsername:-webkit-autofill:hover,
#loginUsername:-webkit-autofill:focus,
#loginPassword:-webkit-autofill:hover,
#loginPassword:-webkit-autofill:focus {
  background-color: #f6fdb2 !important;
  border-color: #dbe296 !important;
  color: #212529 !important;
  caret-color: #212529 !important;
  -webkit-box-shadow: 0 0 0px 1000px #f6fdb2 inset !important;
  -webkit-text-fill-color: #212529 !important;
}


/* ===== Symbol / Icon ===== */
.symbol-input100 {
  font-size: 18px;
  display: flex;
  align-items: center;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  transition: color 0.3s;
  pointer-events: none;
}


.symbol-input100 i {
  font-size: 20px;
  pointer-events: none;
}

/* ===== Captcha Image on Right Side ===== */
.symbol-input100.captcha-symbol {
  left: auto;
  right: 12px;
  pointer-events: auto;
}

.symbol-input100.captcha-symbol .captcha-image {
  width: 110px;
  height: 45px;
  object-fit: cover;
  border-radius: 0px;
  display: block;
  cursor: pointer;
  pointer-events: auto;
}

.wrap-input100 .input100[name="captcha"],
#captchaInput {
  padding: 0 162px 0 12px;
  background-color: #fff !important;
  -webkit-box-shadow: none !important;
}

/* ===== Invalid Captcha Message ===== */
.invalid-captcha-msg {
  color: #df2020;
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 6px;
  margin-bottom: 14px;
  text-align: left;
  line-height: 1.2;
}

/* ===== Terms Row ===== */
.terms-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding-left: 40px;
}

.remember-row {
  display: flex;

  width: 100%;
  margin-left: 0;
  padding-left: 0;
  margin-bottom: 20px;
}

/* Terms container */
.terms-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0;
}

/* Checkbox */
.terms-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  border: 2px solid var(--bs-gray-400);
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bs-white);
  position: relative;
  flex-shrink: 0;
}

/* Checked checkbox */
.terms-row input[type="checkbox"]:checked {
  background: var(--primary-bg-color);
  border-color: var(--primary-bg-color);
}

/* Checkmark */
.terms-row input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 11px;
  font-weight: bold;
}

/* Label */
.terms-row label {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #6c757d;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

/* Terms link */
.terms-row .terms-link {
  color: #8bc34a;
  text-decoration: none;
}

.terms-row .terms-link:hover {
  text-decoration: underline;
}

/* ===== Remember Me ===== */


.remember-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-left: 0;
  padding-left: 0;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  user-select: none;
}

.remember-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  border: 2px solid var(--bs-gray-400);
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bs-white);
  position: relative;
  flex-shrink: 0;
}

.remember-row input[type="checkbox"]:checked {
  background: var(--primary-bg-color);
  border-color: var(--primary-bg-color);
}

.remember-row input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--bs-white);
  font-size: 11px;
  font-weight: bold;
}

.remember-row label {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--bs-gray-600);
  cursor: pointer;
  user-select: none;
}

/* ===== Login Button ===== */
.login100-form-btn {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login100-form-btn button {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  width: 100%;
  height: 40px;
  border-radius: 8px;
  background: #82cb53;
  border: none;
  cursor: pointer;
}

.login100-form-btn button:hover {
  background: #74a045;
  box-shadow: none;
}

/* ===== Footer Link ===== */
.card-footer {
  text-align: center;
  margin-top: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #6c757d;
  padding-bottom: 8px;
}

.card-footer a {
  color: #8bc34a;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}

.card-footer a:hover {
  color: #76a83c;
  text-decoration: underline;
}

/* ===== Error / Success Messages ===== */
.message {
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.message.error {
  background: #ffebee;
  color: var(--bs-red);
  border: 1px solid #ef9a9a;
  display: block;
}

.message.success {
  background: #e8f5e9;
  color: var(--bs-green);
  border: 1px solid #a5d6a7;
  display: block;
}

/* ===== Key Page ===== */
.key-form .input100 {
  text-align: center;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
  font-size: 17px;
  padding-left: 7px !important;
}

/* ===== Password Strength ===== */
.strength-bar {
  height: 3px;
  border-radius: 2px;
  margin-top: 4px;
  background: var(--bs-gray-300);
  overflow: hidden;
}

.strength-bar .fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}

/* ===== Loading ===== */


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

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .page-wrapper {
    max-width: 100%;
  }

  .card-body {
    padding: 32px 24px 20px;
  }

  .character-wrapper {
    width: 150px;
    height: 120px;
    margin-bottom: -44px;
  }
}

/* ===== Secret Key Page ===== */
.secret-key-wrapper {
  background-color: #f0f0f5;
  width: 80%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.secret-key-card {
  background: var(--bs-white);
  border: 1px solid #e0e0e0;
  border-radius: 12px;

  width: 100%;
  max-width: 400px;
  min-height: 270px;

  padding: 50px 40px 40px;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.secret-key-title {
  display: block;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 500;
  font-style: normal;
  color: #212529;
  line-height: 1.2;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.secret-key-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
  text-transform: uppercase;
  width: 100%;
  height: 40px;
  border-radius: 8px;
  background: #82cb53;
  border: none;
  cursor: pointer;
  margin-top: 24px;
}

.secret-key-btn:hover {
  background: #74a045;
  box-shadow: none;
}

/* ===== Responsive ===== */