
:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #1e293b;
  background: #f3f6fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

button, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1160px, 92%);
  margin: auto;
}

.hidden {
  display: none !important;
}

.site-header {
  background: #142d4e;
  color: white;
  box-shadow: 0 3px 14px #142d4e22;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 22px;
  font-weight: bold;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #3277d5;
  border-radius: 12px;
}

.account-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-content {
  min-height: calc(100vh - 145px);
  padding-top: 48px;
  padding-bottom: 50px;
}

.panel {
  background: white;
  border: 1px solid #e4eaf2;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 28px #142d4e0a;
}

.auth-card {
  max-width: 470px;
  margin: 25px auto;
}

.auth-heading {
  text-align: center;
  margin-bottom: 26px;
}

.eyebrow {
  font-size: 12px;
  font-weight: bold;
  color: #3277d5;
  letter-spacing: 1.5px;
}

h1 {
  font-size: 30px;
  margin: 12px 0;
}

h2 {
  font-size: 21px;
  margin: 0;
}

p {
  color: #64748b;
  line-height: 1.6;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 25px;
}

.tab {
  flex: 1;
  padding: 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #64748b;
  font-weight: bold;
}

.tab.active {
  border-bottom-color: #3277d5;
  color: #2360b3;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-stack label {
  font-size: 14px;
  font-weight: bold;
}

.form-stack input,
.form-stack textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #1e293b;
  outline: none;
}

.form-stack input:focus,
.form-stack textarea:focus {
  border-color: #3277d5;
  box-shadow: 0 0 0 3px #3277d522;
}

.form-stack textarea {
  resize: vertical;
  min-height: 180px;
}

.button {
  padding: 12px 18px;
  border: 0;
  border-radius: 9px;
  font-weight: bold;
  transition: background 0.2s, opacity 0.2s;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button-primary {
  background: #2468c2;
  color: white;
}

.button-primary:hover {
  background: #184f99;
}

.button-secondary {
  background: #e9eef5;
  color: #334155;
}

.button-light {
  background: #ffffff20;
  color: white;
}

.button-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.button-small {
  padding: 9px 12px;
  font-size: 13px;
}

.form-stack > .button-primary {
  margin-top: 12px;
}

.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.status-pill {
  background: #dcfce7;
  color: #166534;
  padding: 9px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: bold;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.section-description {
  font-size: 14px;
  margin: 10px 0 24px;
}

.articles-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.count {
  background: #eaf1fc;
  color: #2468c2;
  padding: 7px 12px;
  border-radius: 20px;
  font-weight: bold;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.article-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 19px;
}

.article-card h3 {
  margin: 0 0 9px;
  overflow-wrap: anywhere;
}

.article-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.article-date {
  font-size: 12px;
  color: #94a3b8;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.empty-state {
  text-align: center;
  padding: 35px 12px;
  color: #64748b;
  background: #f8fafc;
  border-radius: 12px;
}

.notice {
  padding: 14px 18px;
  margin-bottom: 22px;
  border-radius: 9px;
  font-weight: bold;
}

.notice-success {
  background: #dcfce7;
  color: #166534;
}

.notice-error {
  background: #fee2e2;
  color: #991b1b;
}

.footer {
  text-align: center;
  padding: 25px;
  color: #94a3b8;
  font-size: 13px;
}

@media (max-width: 780px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel {
    padding: 22px;
  }

  h1 {
    font-size: 25px;
  }

  .account-area {
    gap: 8px;
    font-size: 12px;
  }
}
