/**
 * tilde.horse Signup Form Stylesheet
 * Matches the main tilde.horse site styling
 */

@font-face {
  font-family: 'Maple Mono';
  src: url("/static/assets/MapleMono-Regular.ttf.woff2") format(woff2);
  font-weight: normal;
  font-style: normal;
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
  background-color: #111111;
  color: #6BABDA;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

* {
  font-family: 'Maple Mono', monospace;
  box-sizing: border-box;
}

h1 {
  text-align: center;
  border-bottom: 2px solid #8CC7E7;
  padding-bottom: 10px;
}

h2, h3 {
  color: #8CC7E7;
}

a {
  color: #8CC7E7;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  border-bottom: 1px solid #8CC7E7;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.nav a {
  margin: 0 10px;
}

/* ============================================
   SHELL PROMPT STYLING
   ============================================ */

.shell-prompt {
  background-color: #0a0a0a;
  border: 1px solid #333;
  border-radius: 3px;
  padding: 12px 15px;
  margin: 25px 0;
  font-size: 0.95em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  white-space: pre-wrap;
}

.shell-prompt::before {
  content: "root@tilde.horse:~$ ";
  color: #6BABDA;
  font-weight: bold;
}

.cursor {
  color: #8CC7E7;
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* ============================================
   FORM STYLES
   ============================================ */

.signup-form {
  background-color: #0a0a0a;
  border: 1px solid #333;
  border-radius: 3px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

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

.form-group label {
  display: block;
  color: #8CC7E7;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group label::before {
  color: #6BABDA;
}

.form-hint {
  font-size: 0.85em;
  color: #666;
  margin-top: 5px;
}

/* Required field indicator */
.required {
  color: #ff6b6b;
  font-weight: bold;
}

/* Text inputs */
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 3px;
  color: #6BABDA;
  font-size: 1em;
  font-family: 'Maple Mono', monospace;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #8CC7E7;
  box-shadow: 0 0 5px rgba(140, 199, 231, 0.3);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: #444;
}

/* Textarea for SSH key and reason */
textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 3px;
  color: #6BABDA;
  font-size: 0.9em;
  font-family: 'Maple Mono', monospace;
  resize: vertical;
  min-height: 100px;
}

textarea.ssh-key {
  min-height: 80px;
  font-size: 0.8em;
}

textarea.reason {
  min-height: 120px;
}

/* ============================================
   FORM BOTTOM (CAPTCHA + SUBMIT)
   ============================================ */

.form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-top: 20px;
}

/* ============================================
   CAPTCHA SECTION
   ============================================ */

.captcha-section {
  margin: 0;
  flex: 1;
}

.captcha-section label {
  display: block;
  color: #8CC7E7;
  margin-bottom: 8px;
  font-weight: bold;
  text-align: left;
}

.captcha-image {
  display: block;
  margin: 10px 0;
  border: 2px solid #333;
  border-radius: 3px;
  max-width: 100%;
  height: auto;
}

.captcha-input {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.captcha-input input[type="text"] {
  width: 180px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1em;
}

.captcha-hint {
  font-size: 0.8em;
  color: #555;
  margin-top: 8px;
}

/* ============================================
   HONEYPOT (Hidden from humans)
   ============================================ */

.honey-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */

.submit-section {
  display: flex;
  align-items: flex-end;
  margin: 0;
}

button[type="submit"] {
  padding: 15px 40px;
  background-color: #1a1a1a;
  border: 2px solid #8CC7E7;
  border-radius: 3px;
  color: #8CC7E7;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Maple Mono', monospace;
  transition: all 0.2s ease;
}

button[type="submit"]:hover {
  background-color: #8CC7E7;
  color: #111111;
}

button[type="submit"]:active {
  transform: scale(0.98);
}

/* ============================================
   ERROR & SUCCESS MESSAGES
   ============================================ */

.error-message {
  background-color: #2a1515;
  border: 1px solid #8B0000;
  border-radius: 3px;
  padding: 15px 20px;
  margin: 20px 0;
  color: #ff6b6b;
}

.error-message::before {
  content: "⚠ Error: ";
  font-weight: bold;
}

.success-message {
  background-color: #152a15;
  border: 1px solid #006400;
  border-radius: 3px;
  padding: 15px 20px;
  margin: 20px 0;
  color: #6bff6b;
}

.success-message::before {
  content: "✓ ";
  font-weight: bold;
}

/* ============================================
   ASCII ART
   ============================================ */

pre.ascii-art {
  text-align: center;
  line-height: 1.0;
  font-size: 12px;
  color: #6BABDA;
  margin: 20px 0;
}

/* ============================================
   DECORATIVE IMAGES (Trixie & Dash)
   ============================================ */

.trixie {
  position: fixed;
  bottom: 1px;
  left: 0;
  padding-left: 20px;
}

.dash {
  position: fixed;
  top: -25px;
  right: 0;
  padding-right: 20px;
}

.trixie img,
.dash img {
  width: 103px;
  image-rendering: pixelated;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media screen and (max-width: 768px) {
  body {
    padding: 15px;
  }

  /* Hide decorative images on mobile */
  .trixie,
  .dash {
    display: none;
  }

  pre.ascii-art {
    font-size: 9px;
    padding: 5px;
    overflow-x: auto;
  }

  .signup-form {
    padding: 15px;
  }

  .shell-prompt {
    font-size: 0.85em;
    padding: 10px 12px;
  }

  /* Stack form-bottom on mobile */
  .form-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .captcha-section {
    max-width: 100%;
  }

  .submit-section {
    justify-content: center;
    margin-top: 15px;
  }

  .captcha-input {
    flex-direction: column;
  }

  .captcha-input input[type="text"] {
    width: 100%;
  }

  button[type="submit"] {
    width: 100%;
    padding: 15px 20px;
  }

  .nav a {
    display: block;
    margin: 10px 0;
  }

  h1 {
    font-size: 1.5em;
  }

  textarea.ssh-key {
    min-height: 100px;
  }
}

@media screen and (max-width: 480px) {
  pre.ascii-art {
    font-size: 7px;
  }

  .signup-form {
    padding: 12px;
  }

  input[type="text"],
  input[type="email"],
  textarea {
    padding: 10px 12px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* ============================================
   FINGERPRINT / CODE BLOCKS
   ============================================ */

.fingerprint {
  overflow-x: auto;
  background-color: #1a1a1a;
}

.fingerprint::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* ============================================
   LIST STYLING (Matches main site)
   ============================================ */

ul {
  list-style: none;
  padding-left: 0;
  background-color: #0a0a0a;
  border: 1px solid #333;
  border-radius: 3px;
  padding: 15px 20px;
  margin: 15px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

ul li {
  padding: 4px 0;
  position: relative;
  padding-left: 25px;
  line-height: 1.3;
}

ul li::before {
  content: "•";
  position: absolute;
  left: 5px;
  color: #6BABDA;
  font-weight: bold;
}

ul li a {
  color: #8CC7E7 !important;
  font-weight: normal !important;
}

ul li a:hover {
  color: #ffffff !important;
  text-decoration: underline;
  text-decoration-color: #8CC7E7;
  border-bottom: none;
}

/* Non-link items */
ul li:not(:has(a)) {
  color: #999999;
}
