
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  box-sizing: border-box;
  padding: 50px 24px 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f7f0e5;
  font-family: Arial, sans-serif;
  color: #111;
}

.login-page *,
.login-page *::before,
.login-page *::after {
  box-sizing: border-box;
}

.login-card {
  width: 100%;
  max-width: 560px;
  padding: 48px;
  border-radius: 36px;
  background: white;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
}

.login-subtitle {
  margin: 0 0 36px;
  font-size: 14px;
  color: #777;
  line-height: 1.5;
}

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

.form-group label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.form-group input {
  width: 100%;
  padding: 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 16px;
}

.form-group input:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.forgot-password {
  display: block;
  margin: 4px 0 28px;
  text-align: right;
  color: #777;
  font-size: 13px;
  text-decoration: none;
}

.login-button {
  width: 100%;
  padding: 18px;
  border: 0;
  border-radius: 10px;
  background: #111;
  color: white;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s;
}

.login-button:hover {
  opacity: 0.8;
}

.login-button:disabled { opacity: 0.55; cursor: wait; }
#login-message { font-size: 14px; line-height: 1.5; }
#login-message[data-error="true"] { color: #a12020; }
[hidden] { display: none !important; }

.dashboard-page { display: block; padding: 0 28px; }
.dashboard { width: min(100%, 1080px); margin: auto; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; border-bottom: 1px solid #dfd8cc; }
.wordmark { color: #111; font-size: 34px; font-weight: 900; letter-spacing: -2px; text-decoration: none; }
.wordmark span { font-size: 13px; vertical-align: top; letter-spacing: 0; margin-left: 4px; }
.outline-button { background: transparent; border: 1px solid #c5bfb5; border-radius: 8px; padding: 12px 17px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; cursor: pointer; color: #111; }
.dashboard-intro { padding: 42px 0 30px; }
.eyebrow { margin: 0 0 13px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #756f65; }
.dashboard-intro h2 { margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: .98; letter-spacing: -3px; font-weight: 900; }
.dashboard-intro h2 span { color: #9a8c6d; }
.dashboard-intro > p:last-child { margin: 18px 0 0; color: #706b62; font-size: 14px; line-height: 1.6; }
.chat-card { background: #fff; border-radius: 26px; padding: 26px 32px 20px; box-shadow: 0 12px 35px #00000004; }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid #eeeae3; }
.chat-header .eyebrow { font-size: 9px; margin-bottom: 5px; }
.chat-header h3 { font-size: 22px; letter-spacing: -.7px; margin: 0; }
.text-button { font: inherit; font-size: 12px; border: none; background: transparent; color: #6c665e; cursor: pointer; padding: 10px 0 10px 10px; }
.chat-messages { height: 300px; overflow-y: auto; padding: 24px 0; overscroll-behavior: contain; }
.chat-welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 250px; }
.milli-mark { width: 46px; height: 46px; line-height: 43px; background: #f7f0e5; border-radius: 14px; font-size: 27px; font-weight: 900; letter-spacing: -3px; padding-right: 2px; }
.chat-welcome h4 { font-size: 22px; letter-spacing: -.7px; margin: 16px 0 8px; }
.chat-welcome > p { font-size: 13px; color: #777; margin: 0; line-height: 1.5; }
.prompt-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 24px; }
.prompt-options button { background: white; color: #514d46; border: 1px solid #e4dfd6; border-radius: 8px; padding: 11px 13px; font: inherit; font-size: 11px; cursor: pointer; }
.prompt-options button:hover { background: #f7f0e5; }
.chat-composer { display: flex; gap: 12px; align-items: flex-end; padding: 14px; border: 1px solid #ded8cd; border-radius: 14px; background: #fcfbf8; }
.chat-composer textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 180px; resize: vertical; border: none; background: transparent; padding: 5px; color: #111; font: inherit; font-size: 14px; line-height: 1.5; }
.chat-composer textarea:focus { outline: none; }
.chat-composer:focus-within { outline: 2px solid #aaa18e; outline-offset: 2px; }
.chat-composer button { width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 10px; color: white; background: #111; font-size: 25px; cursor: pointer; }
.chat-status { margin: 9px 0 0; min-height: 18px; color: #85512d; font-size: 12px; line-height: 1.5; }
.chat-note { margin: 4px 0 0; text-align: center; color: #817b72; font-size: 10px; line-height: 1.7; }
.chat-message { padding: 14px 18px; border-radius: 12px; margin-bottom: 14px; max-width: 92%; overflow-wrap: anywhere; }
.chat-message.user { margin-left: auto; background: #f7f0e5; }
.chat-message.assistant { background: #fafaf8; }
.chat-message strong { font-size: 9px; letter-spacing: 1px; color: #6e675d; }
.chat-message p { white-space: pre-wrap; font-size: 14px; line-height: 1.7; margin: 8px 0 0; }
.dashboard-footer { text-align: center; color: #8c8476; font-size: 9px; letter-spacing: 1.6px; padding: 26px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dashboard button:disabled { cursor: wait; opacity: .5; }
.dashboard button:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
@media (max-width: 600px) {
  .dashboard-page { padding: 0 18px; }
  .dashboard-header { padding: 22px 0; }
  .dashboard-intro { padding: 30px 0 26px; }
  .dashboard-intro h2 { letter-spacing: -2px; }
  .chat-card { padding: 22px 18px 18px; border-radius: 20px; }
  .chat-messages { height: 330px; }
  .prompt-options { gap: 6px; margin-top: 20px; }
  .prompt-options button { padding: 10px; font-size: 10px; }
  .chat-message { max-width: 100%; }
}

.login-button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.signup-text {
  margin: 25px 0 0;
  text-align: center;
  font-size: 13px;
  color: #777;
}

.signup-text a {
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.studio-link {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
}



/* Shorter screens */
@media (max-height: 749px) {
  .login-page {
    justify-content: flex-start;
  }

  .studio-link {
    position: static;
    transform: none;
    margin-top: 50px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .login-page {
    padding: 40px 18px 160px;
  }

  .login-card {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .login-card h1 {
    letter-spacing: -1px;
  }
}

@media (max-width: 600px) and (max-height: 749px) {
  .login-page {
    padding-bottom: 40px;
  }
}

.login-page.dashboard-page { padding: 0 28px; }
@media (max-width: 600px) { .login-page.dashboard-page { padding: 0 18px; } }
