:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #bbf7d0 0%, #16a34a 100%);
  background-attachment: fixed;
}

.card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  text-align: center;
  animation: fade-slide-up 0.5s ease both;
}

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
}

.logo {
  max-width: 170px;
  margin: 0 auto 16px;
  display: block;
}

.title {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
}

.subtitle {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.highlight {
  margin: 0 0 18px;
  padding: 12px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #047857;
  font-size: 18px;
  font-weight: 700;
  word-break: break-word;
  animation: fade-in 0.6s ease 0.15s both;
}

/* tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  flex: 1;
  padding: 10px 4px;
  border-radius: 9px;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  border: none;
}

.tab:hover {
  transform: translateY(-1px);
}

.tab.active {
  background: var(--primary);
  color: #fff;
}

/* inputs */
.input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 15px;
  text-align: center;
  color: var(--text);
  background: #fafafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.info {
  margin: -2px 0 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  transition: opacity 0.2s ease;
}

.divider-text {
  margin: 18px 0 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}

.hint {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* buttons */
.btn-primary,
.btn-secondary {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text);
}

.btn-secondary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

/* status / logout table */
.table-min {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  font-size: 13.5px;
  animation: fade-in 0.6s ease 0.1s both;
}

.table-min td {
  padding: 9px 4px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.table-min tr td:first-child {
  color: var(--text-muted);
  width: 40%;
}

.table-min tr td:last-child {
  text-align: right;
  font-weight: 600;
}

.table-min tr:last-child td {
  border-bottom: none;
}

/* alert */
.alert {
  margin-top: 4px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13.5px;
  animation: fade-in 0.3s ease both;
}

.footer {
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.footer a {
  color: inherit;
}

iframe#exp {
  border: 0;
  width: 100%;
  height: 20px;
}
