:root {
  --wp-green: #1f6b2e;
  --wp-green-dark: #165223;
  --wp-green-mid: #3a9a3f;
  --wp-green-light: #78be20;
  --wp-text: #1f2a24;
  --wp-muted: #5b6b63;
  --wp-line: #cfd9d2;
  --wp-shadow: 0 18px 48px rgba(18, 28, 38, 0.38);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--wp-text);
  background: #0f1a12 url("../images/login-bg.jpg") center / cover no-repeat fixed;
}

.wp-login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(180deg, rgba(20, 30, 40, 0.08), rgba(20, 30, 40, 0.22));
}

.wp-login-card {
  width: min(460px, 100%);
  border-radius: 28px;
  padding: 30px 30px 18px;
  border: 4px solid var(--wp-green);
  /* Bright white center, silver/gray on left and right edges */
  background: linear-gradient(
    90deg,
    #c8d0d8 0%,
    #e4e9ee 12%,
    #f7f9fb 28%,
    #ffffff 50%,
    #f7f9fb 72%,
    #e4e9ee 88%,
    #c8d0d8 100%
  );
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.wp-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.wp-brand img {
  display: block;
  max-width: 100%;
}

.wp-error {
  display: none;
  margin: 10px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdebec;
  color: #a11d28;
  font-size: 14px;
  line-height: 1.35;
}

.wp-error.is-visible {
  display: block;
}

.wp-form {
  margin-top: 4px;
}

.wp-login-section {
  margin-top: 4px;
}

.wp-field {
  position: relative;
  margin-top: 12px;
}

.wp-field:first-child {
  margin-top: 0;
}

.wp-field input {
  width: 100%;
  height: 48px;
  border: 1px solid #c5d2ca;
  border-radius: 10px;
  padding: 0 44px 0 44px;
  font-size: 15px;
  color: var(--wp-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wp-field input::placeholder {
  color: #8a9790;
}

.wp-field input:focus {
  border-color: var(--wp-green-mid);
  box-shadow: 0 0 0 3px rgba(58, 154, 63, 0.15);
}

.wp-field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--wp-green);
  pointer-events: none;
}

.wp-toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #7d8b84;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wp-toggle-password:hover,
.wp-toggle-password:focus-visible {
  color: var(--wp-green);
  outline: none;
}

.wp-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 14px;
  font-size: 14px;
}

.wp-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wp-text);
  cursor: pointer;
  user-select: none;
}

.wp-shortcut input {
  width: 16px;
  height: 16px;
  accent-color: var(--wp-green);
}

/*
.wp-forgot {
  color: var(--wp-green);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.wp-forgot:hover,
.wp-forgot:focus-visible {
  text-decoration: underline;
  outline: none;
}
*/

.wp-submit {
  margin-top: 16px;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #7ed957 0%, #4caf40 42%, #2f8f33 78%, #237a2a 100%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.45) inset,
    0 -1px 0 rgba(20, 80, 30, 0.25) inset,
    0 10px 22px rgba(31, 107, 46, 0.28);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.wp-submit:hover {
  filter: brightness(1.04);
}

.wp-submit:active {
  transform: translateY(1px);
}

.wp-submit:focus-visible {
  outline: 3px solid rgba(120, 190, 32, 0.45);
  outline-offset: 2px;
}

.wp-submit-arrow {
  font-size: 20px;
  line-height: 1;
}

.wp-modules {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #c7d4cc;
  display: flex;
  align-items: stretch;
}

.wp-module {
  flex: 1 1 0;
  text-align: center;
  color: var(--wp-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  padding: 0 6px;
  border-right: 1px solid #c7d4cc;
}

.wp-module:last-child {
  border-right: 0;
}

.wp-module-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-bottom: 6px;
}

.wp-module img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
}

@media (max-width: 480px) {
  .wp-login-card {
    padding: 20px 14px 14px;
    border-radius: 22px;
  }

  .wp-module {
    font-size: 11px;
    padding: 0 4px;
  }
}
