* {
  box-sizing: border-box;
}

:root {
  --color-primary: #3fae94;
  --color-primary-contrast: #0f5c4b;
  --color-surface: #ffffff;
  --color-surface-muted: #f1f5f9;
  --color-border: #e0e7ef;
  --color-text: #111111;
  --shadow-soft: 0 12px 30px rgba(15, 19, 36, 0.08);
}
html, body {
  padding: 0;
  margin: 0;
  min-width: 320px;
}
body {
  background: linear-gradient(180deg, #f8fbff 0%, #f2f5fb 100%);
  font-family: "Inter", "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-text);
  min-height: 100vh;
}
a {
  color: var(--color-primary);
  text-decoration-color: rgba(63, 174, 148, 0.35);
  transition: color 120ms ease, text-decoration-color 120ms ease;
}
a:hover {
  color: var(--color-primary-contrast);
}
label {
  cursor: pointer;
  color: #444;
}
h1,
h2,
h3,
h4 {
  font-weight: 400;
}
.section {
  margin-bottom: 45px;
}

.surface {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

input[type="text"], input[type="email"], input[type="password"], select {
  padding: 12px 18px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  width: 100%;
  background-color: var(--color-surface);
  box-shadow: none;
  font-size: 1em;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
  input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(63, 174, 148, 0.15);
  }

input:focus::placeholder {
  color: transparent;
}

input[disabled] {
  opacity: 0.5;
}

.center {
  text-align: center;
}
.right {
  text-align: right;
}
.small {
  font-size: 0.875em;
}
.error {
  color: #FF5722;
}
.button {
  background: linear-gradient(135deg, var(--color-primary), #45c7a7);
  padding: 16px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  display: inline-block;
  min-width: 160px;
  font-size: 1.05em;
  text-align: center;
  box-shadow: 0 6px 16px rgba(63, 174, 148, 0.3);
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(63, 174, 148, 0.35);
}
.button.button-outline {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: none;
}
.button.button-outline:hover {
  border-color: var(--color-primary-contrast);
  color: var(--color-primary-contrast);
  background-color: rgba(63, 174, 148, 0.08);
}

.container {
  margin: 60px auto 15px auto;
  max-width: 600px;  
  padding: 0 20px;
}

.wrap {
  background: var(--color-surface);
  padding: 48px;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 15px;
  margin-bottom: 30px;
}
.header .logo img {
  width: auto;
  max-width: 200px;
}

.unsub-all {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
}

.row {
  margin-bottom: 20px;
}
.lists {
  list-style-type: none;
  padding: 0;
}
  .lists li {
    margin: 0 0 12px 0;   
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface-muted);
    position: relative;
  }
  .lists .list-option {
    position: relative;
    display: block;
    min-height: 24px;
  }
  .lists .list-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .lists .checkbox-modern {
    display: block;
    padding-left: 38px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    line-height: 1.4;
  }
  .lists .checkbox-modern::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    border: 2px solid var(--color-border);
    background-color: var(--color-surface);
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 6px rgba(15, 19, 36, 0.08);
  }
  .lists .checkbox-modern::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: 2px solid transparent;
    border-left: none;
    border-top: none;
    transform: rotate(45deg) scale(0.6);
    transition: border-color 150ms ease, transform 150ms ease;
  }
  .lists .list-option input[type="checkbox"]:focus + .checkbox-modern::before {
    box-shadow: 0 0 0 4px rgba(63, 174, 148, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: var(--color-primary);
  }
  .lists .list-option input[type="checkbox"]:checked + .checkbox-modern::before {
    border-color: transparent;
    background: linear-gradient(135deg, var(--color-primary), #45c7a7);
  }
  .lists .list-option input[type="checkbox"]:checked + .checkbox-modern::after {
    border-color: #fff;
    transform: rotate(45deg) scale(1);
  }
  .lists .description {
    margin: 0 0 15px 0;
    font-size: 0.875em;
    line-height: 1.3rem;
    color: #888;
    margin-left: 38px;
  }
  .form .nonce {
    display: none;
  }
  .form .captcha {
    margin-top: 30px;
  }

.archive {
  list-style-type: none;
  margin: 25px 0 0 0;
  padding: 0;
}
  .archive .date {
    display: block;
    color: #666;
    font-size: 0.875em;
  }
  .archive li {
    margin-bottom: 20px;
    padding: 16px 20px;
    background-color: var(--color-surface);
    border-radius: 18px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
  }
  .feed {
    margin-right: 15px;
  }

.home-options {
  margin-top: 30px;
}
  .home-options a {
    margin: 0 7px;
  }

.pagination {
  margin-top: 30px;
  text-align: center;
}
  .pg-page {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 999px;
    margin: 0 4px;
    border: 1px solid transparent;
    transition: background-color 120ms ease, color 120ms ease;
  }
  .pg-page.pg-selected {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
  }
  .pg-page:not(.pg-selected):hover {
    background-color: rgba(63, 174, 148, 0.1);
    color: var(--color-primary-contrast);
  }

.login .submit {
  margin-top: 20px;
}
  .login button {
    width: 100%;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .login button img {
    max-width: 24px;
    margin-right: 10px;
  }
  .login input[name=totp_code] {
    font-size: 2em;
    letter-spacing: 5px;
    text-align: center;
  }

#btn-back {
  display: none;
}

footer.container {
  margin-top: 15px;
  text-align: center;
  color: #aaa;
  font-size: 0.775em;
  margin-top: 30px;
  margin-bottom: 30px;
}
  footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 120ms ease;
  }
  footer a:hover {
    color: var(--color-primary);
  }

@media screen and (max-width: 650px) {
  .wrap {
    margin: 0;
    padding: 32px 24px;
    max-width: none;
    border-radius: 22px;
  }
}
