/* Commuta sign-in frame (LF.1). Shared by login.html and _auth_shell.html so the
   sign-in screens cannot drift apart. The first block is login.html's own style
   block moved here verbatim; the "shell additions" block below it styles the
   anchor buttons and notes that only the shell uses. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #090D0A;
  color: #E5E1D5;
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: #0F1410;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.brand {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: #E5E1D5;
  margin-bottom: 4px;
}

.brand span { color: #7AB648; }

.tagline {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: #7A8F7C;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, #7AB648, transparent);
  margin-bottom: 40px;
  opacity: 0.5;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: #E5E1D5;
  margin-bottom: 8px;
}

p {
  font-size: 0.875rem;
  color: #7A8F7C;
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: #7AB648;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  background: #090D0A;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 14px 16px;
  color: #E5E1D5;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  border-color: #7AB648;
}

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 4px;
  color: #4E5E50; width: auto; margin: 0; line-height: 0;
}

button {
  width: 100%;
  background: #2C5F2D;
  border: none;
  border-radius: 8px;
  padding: 14px;
  color: #E5E1D5;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}

button:hover { background: #3a7a3b; }

.login-tab-btn {
  transition: all 0.2s ease;
  cursor: pointer;
}
.login-tab-btn:hover {
  border-color: #7AB648 !important;
  color: #7AB648 !important;
  background: rgba(44,95,45,0.15) !important;
}

.login-submit-btn {
  background: #1A2A1A !important;
  border: 1px solid #7AB648 !important;
  color: #7AB648 !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}
.login-submit-btn:hover {
  background: rgba(44,95,45,0.2) !important;
  box-shadow: 0 0 10px rgba(122,182,72,0.3);
  opacity: 0.85;
}

.message {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  display: none;
}

.message.success {
  background: rgba(44, 95, 45, 0.3);
  border: 1px solid #2C5F2D;
  color: #7AB648;
}

.message.error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid #F43F5E;
  color: #F43F5E;
}

.footer {
  margin-top: 40px;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: #7A8F7C;
  text-align: center;
  letter-spacing: 0.08em;
}

/* ── Shell additions (_auth_shell.html) ───────────────────────────────────── */
.card h2 { text-align: left; }
.card .btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: #1A2A1A;
  border: 1px solid #7AB648;
  border-radius: 8px;
  padding: 14px;
  color: #7AB648;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s ease;
}
.card .btn:hover {
  background: rgba(44,95,45,0.2);
  box-shadow: 0 0 10px rgba(122,182,72,0.3);
  opacity: 0.85;
}
.card form { margin: 0; }
.card .links { text-align: center; margin-top: 18px; }
.card .link {
  display: inline-block;
  margin: 0 8px;
  font-family: 'DM Mono', monospace;
  font-size: 0.73rem;
  color: #B8C9B9;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.card .link:hover { color: #7AB648; }
.card .small-print {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 0.78rem;
  color: #7A8F7C;
  text-align: center;
  line-height: 1.5;
}
.card .message.show { display: block; }

