:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-accent: #f3f4f6;
  --border-color: #e5e7eb;
  --border-radius: 8px;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --bg-accent: #374151;
    --border-color: #4b5563;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }
}

* {
  box-sizing: border-box;
}

html, body {
  padding: 0;
  margin: 0;
  min-width: 320px;
}

body {
  background: var(--bg-secondary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

label {
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 500;
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  margin: 0 0 16px 0;
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

.section {
  margin-bottom: 48px;
}

input[type="text"], input[type="email"], input[type="password"], select {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  width: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #ddd;
  font-size: 1em;
}
  input:focus {
    border-color: #0055d4;
  }

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

input[disabled] {
  opacity: 0.5;
}

.center {
  text-align: center;
}
.right {
  text-align: right;
}
.error {
  color: #FF5722;
}
.button {
  background: #0055d4;
  padding: 15px 30px;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: #ffff;
  display: inline-block;
  min-width: 150px;
  font-size: 1.1em;
  text-align: center;
}
.button:hover {
  background: #333;
  color: #fff;
}
.button.button-outline {
  background: #fff;
  border: 1px solid #0055d4;
  color: #0055d4;
}
.button.button-outline:hover {
  border-color: #333;
  background-color: #333;
  color: #fff;
}

.container {
  margin: 60px auto 15px auto;
  max-width: 550px;  
}

.wrap {
  background: #fff;
  padding: 40px;
  box-shadow: 2px 2px 0 #f3f3f3;
  border: 1px solid #eee;
}

.header {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 30px;
}
.header .logo img {
  width: auto;
  max-width: 150px;
}

.unsub-all {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.row {
  margin-bottom: 20px;
}
.lists {
  list-style-type: none;
  padding: 0;
}
  .lists li {
    margin: 0 0 5px 0;    
  }
  .lists .description {
    margin: 0 0 15px 0;
    font-size: 0.875em;
    line-height: 1.3rem;
    color: #888;
    margin-left: 25px;
  }
  .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: 15px;
  }
  .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: 0 10px;
    text-decoration: none;
  }
  .pg-page.pg-selected {
    text-decoration: underline;
    font-weight: bold;
  }

.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;
  }

#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;
  }
  footer a:hover {
    color: #111;
  }

@media screen and (max-width: 650px) {
  .wrap {
    margin: 0;
    padding: 30px;
    max-width: none;
  }
}
