@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=DM+Serif+Display:ital@0;1&display=swap');

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

body {
  font-family: 'DM Sans', sans-serif;
  color: #1a1d2e;
  background: #F7F8FC;
  min-height: 100vh;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: #fff;
  border-bottom: 1px solid #EAECF4;
}

.auth-logo img { height: 36px; width: auto; display: block; }

.auth-back {
  font-size: 13.5px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-back:hover { color: #4361EE; }

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #EAECF4;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(15, 18, 36, 0.06);
}

.auth-card h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  letter-spacing: -0.5px;
  color: #0f1224;
  margin-bottom: 8px;
}

.auth-card .auth-lead {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}

.auth-field { margin-bottom: 16px; }

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
}

.auth-field input:focus {
  outline: none;
  border-color: #4361EE;
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.auth-error {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  border: none;
  transition: all 0.15s;
  width: 100%;
}

.btn-primary { background: #4361EE; color: #fff; }
.btn-primary:hover { background: #3451d1; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-outline {
  background: #fff;
  color: #374151;
  border: 1px solid #D1D5DB;
}

.btn-outline:hover { border-color: #4361EE; color: #4361EE; }

.demo-panel {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #F3F4F6;
}

.demo-panel h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4361EE;
  margin-bottom: 8px;
}

.demo-panel p {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 12px;
}

.demo-creds {
  background: #F7F8FC;
  border: 1px solid #EAECF4;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  margin-bottom: 12px;
}

.demo-creds code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #1a1d2e;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13.5px;
  color: #6b7280;
}

.auth-footer a { color: #4361EE; font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .auth-header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .auth-logo img {
    height: 32px;
    max-width: 140px;
  }

  .auth-back {
    font-size: 12.5px;
  }

  .auth-main {
    padding: 32px 16px 48px;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .demo-creds {
    word-break: break-word;
  }

  .demo-creds code {
    word-break: break-all;
  }
}
