/* EXE.DEV shared styles: background, fonts, basic layout */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  background-color: #fffff8;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.035) 0px,
    rgba(0, 0, 0, 0.035) 2px,
    transparent 2px,
    transparent 4px
  );
  background-size: 4px 4px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  overflow-x: hidden;
}

main {
  max-width: 900px;
  width: 100%;
  overflow-x: hidden;
  margin: 0 auto;
}

/* Shared typographic + layout elements */

h1 {
  font-size: clamp(70px, 14vw, 140px);
  line-height: 0.9;
  color: #000;
  margin-bottom: 40px;
  font-weight: normal;
  letter-spacing: -0.02em;
}

aside {
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: #333;
  margin-bottom: 20px;
  font-weight: 400;
  position: relative;
}

aside::before,
aside::after {
  content: '§';
  font-size: 18px;
  opacity: 0.5;
  margin: 0 15px;
  font-weight: normal;
}

hr {
  width: 200px;
  height: 40px;
  border: 0;
  margin: 40px auto;
  position: relative;
  opacity: 0.4;
}

hr::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    #333 20%,
    #333 80%,
    transparent 100%);
}

hr::after {
  content: '❦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  background: #fffff8;
  padding: 0 10px;
  color: #333;
}

@media (max-width: 600px) {
  h1 {
    margin-left: 0;
    margin-right: 0;
  }
  aside {
    font-size: 12px;
    letter-spacing: 0.2em;
  }
  hr {
    transform: scale(0.8);
    margin: 30px auto;
  }
}

/* Simple bottom navigation */
nav {
  margin-top: 50px;
  text-align: center;
}

nav a {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-variant: small-caps;
  color: #333;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

nav a + a::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  margin: 0 12px 2px;
  vertical-align: middle;
}

@media (max-width: 600px) {
  nav a {
    font-size: 12px;
    letter-spacing: 0.2em;
  }
  nav a + a::before {
    margin: 0 8px 2px;
  }
}


/* Auth box components - shared styles for login, registration, verification */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 20px;
}

.auth-page main {
  width: 100%;
  max-width: 520px;
}

.auth-box {
  background: rgba(255, 255, 248, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.auth-box .exy {
  display: block;
  width: 72px;
  margin: 0 auto 24px;
}

.auth-box h1 {
  color: #000;
  margin-bottom: 16px;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.auth-box .subtitle {
  color: #5a5a5a;
  margin-bottom: 32px;
  font-size: 16px;
}

.auth-box p {
  color: #4a4a4a;
  line-height: 1.6;
  margin: 20px 0;
}

.auth-box .form-group {
  margin-bottom: 24px;
}

.auth-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #000;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.auth-box input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 16px;
  background: #fffdf5;
}

.auth-box input[type="email"]:focus {
  outline: none;
  border-color: #000;
}

.auth-box button,
.auth-box .button {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 14px 16px;
  border: 1px solid #000;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
  display: block;
  text-decoration: none;
  text-align: center;
}

.auth-box button:hover,
.auth-box .button:hover {
  background: #222;
  text-decoration: none;
}

.auth-box button:disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
}

.auth-box .code-box {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  margin: 20px 0 8px;
}

.auth-box .code-label {
  display: block;
  color: #222;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.auth-box .code-value {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 20px;
  font-weight: 500;
  color: #000;
  letter-spacing: 0.16em;
}

.auth-box .code-note {
  color: #4a4a4a;
  font-size: 12px;
  text-align: center;
  margin-top: 8px;
}

.auth-box .info-box {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
  font-size: 14px;
}

.auth-box .info-box strong {
  color: #222;
  display: block;
  margin-bottom: 8px;
}

.auth-box .public-key {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: #000;
  word-break: break-all;
  line-height: 1.6;
}

.auth-box .alt-method {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px dotted rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #666;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.auth-box .ssh-command {
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.04);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-block;
}

@media (max-width: 600px) {
  .auth-page {
    padding: 32px 16px;
  }

  .auth-box {
    padding: 36px 24px;
    border-radius: 20px;
  }

  .auth-box h1 {
    font-size: 24px;
  }

  .auth-box .subtitle {
    font-size: 15px;
  }
}

/* Simple auth box variant - white background, simpler shadow */

.auth-box.simple {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.auth-page.gray {
  background: #f5f5f5;
}

.auth-page.gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-box.simple h1 {
  color: #0f172a;
  margin-bottom: 12px;
  font-size: 28px;
}

.auth-box.simple p {
  color: #475569;
}

.auth-box.simple .success {
  color: #48bb78;
  font-size: 48px;
  margin-bottom: 20px;
}

.auth-box.simple .command {
  background: #f7fafc;
  padding: 15px;
  border-radius: 5px;
  font-family: monospace;
  margin: 20px 0;
  border: 1px solid #e2e8f0;
}

@media (max-width: 600px) {
  .auth-box.simple {
    padding: 32px 24px;
  }

  .auth-box.simple h1 {
    font-size: 24px;
  }

  .auth-box.simple .success {
    font-size: 40px;
  }
}
