:root{
  --gray-50:#f9fafb;
  --gray-100:#f3f4f6;
  --gray-200:#e5e7eb;
  --gray-600:#4b5563;
  --gray-700:#374151;
  --gray-900:#111827;
  --red-700:#b91c1c;
  --green-800:#065f46;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;
}
*{box-sizing:border-box}
body{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  min-height:100vh;
  margin:0;
  background: linear-gradient(135deg, #764ba2 40%, #a24ba2 90%);
  padding:60px 20px;
}
.card{
  background:#fff;
  border-radius:12px;
  box-shadow:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06);
  padding:40px;
  max-width:500px;
  width:100%;
}
h1{
  font-size:24px;
  font-weight:700;
  margin:0 0 8px;
  color:var(--gray-900);
  text-align:center;
}
.subtitle{
  margin:0 0 24px;
  color:var(--gray-700);
  font-size:14px;
  line-height:1.5;
  text-align:center;
}
.form-group{
  margin-bottom:16px;
}
label{
  display:block;
  font-size:14px;
  font-weight:500;
  color:var(--gray-900);
  margin-bottom:8px;
}
input{
  width:100%;
  padding:10px 14px;
  border:1px solid var(--gray-200);
  border-radius:8px;
  font-size:14px;
  transition:border-color .15s;
}
input:focus{
  outline:none;
  border-color:var(--gray-900);
  box-shadow:0 0 0 3px rgba(17,24,39,0.1);
}
input:disabled{
  background:var(--gray-50);
  cursor:not-allowed;
}
.btn-row{
  display:flex;
  gap:12px;
  margin-top:20px;
}
button{
  padding:10px 16px;
  border-radius:8px;
  border:none;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:all .15s;
  width:100%;
}
button:disabled{
  opacity:.5;
  cursor:not-allowed;
}
.btn-primary{
  background:var(--gray-900);
  color:#fff;
}
.btn-primary:not(:disabled):hover{
  background:#000;
}
.message{
  margin-top:12px;
  padding:12px;
  border-radius:8px;
  font-size:13px;
  display:none;
  text-align: center;
}
.message.show{display:block}
.message.error{
  background:#fef2f2;
  color:var(--red-700);
  border:1px solid #fecaca;
}
.message.success{
  background:#ecfdf5;
  color:var(--green-800);
  border:1px solid #a7f3d0;
}
.forgot-password{
  text-align:center;
  margin-top:16px;
}
.forgot-password a{
  color:var(--gray-700);
  font-size:13px;
  text-decoration:none;
  transition:color .15s;
}
.forgot-password a:hover{
  color:var(--gray-900);
}

/* Auth Toggle Styles */
.auth-toggle {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.auth-toggle p {
  color: var(--gray-600);
  font-size: 14px;
  margin: 0;
}

.auth-toggle a {
  color: var(--gray-900);
  font-weight: 600;
  text-decoration: none;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

/* Password match indicator */
.password-match {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

.password-match.valid {
  color: var(--green-800);
}

.password-match.invalid {
  color: var(--red-700);
}
