/* Nubya password reset web – minimal styles */
:root {
  --bg: #0d1f17;
  --card-bg: #162a20;
  --text: #f4fafe;
  --text-muted: #9ca3af;
  --accent: #ccff00;
  --accent-hover: #b3e600;
  --error: #ef4444;
  --input-border: #2d4a3e;
  --input-focus: #ccff00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

body.home-page {
  align-items: stretch;
}

body:not(.home-page) {
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.container {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container--wide {
  max-width: 720px;
}

/* Site header (home page) */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--input-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo--header {
  margin-bottom: 0;
}

.logo--header img {
  height: 20px;
}

.site-nav .link {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Hero (home page) */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.hero__title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero__subline {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin: 0 0 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.cta-group .btn {
  width: auto;
  min-width: 160px;
  margin-top: 0;
  text-decoration: none;
  text-align: center;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(204, 255, 0, 0.1);
}

/* Features (home page) */
.features {
  padding: 2rem 0 3rem;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  text-align: center;
  padding: 1.25rem;
  background: var(--card-bg);
  border-radius: 12px;
}

.feature__icon {
  display: block;
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Site footer (home page) */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--input-border);
  text-align: center;
}

.site-footer__links {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

.site-footer__sep {
  color: var(--text-muted);
  margin: 0 0.5rem;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
}

input::placeholder {
  color: var(--text-muted);
}

input:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 2px rgba(204, 255, 0, 0.2);
}

.btn {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  margin-top: 0.5rem;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

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

.link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9375rem;
}

.link:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.message.success {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.message.error {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.message.info {
  background: rgba(204, 255, 0, 0.1);
  color: var(--accent);
}

.hidden {
  display: none;
}

.text-center {
  text-align: center;
}

.logo {
  margin-bottom: 2rem;
  text-align: center;
}

.logo img {
  height: 60px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
