/* LoomQR auth pages (register / login) */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", Arial, Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #2a2440; background: #fbf7ff; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
.auth-wrap, .auth-success { width: 100%; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card {
  width: 100%; max-width: 400px; background: #fff; border: 1px solid #ece6f5; border-radius: 20px;
  padding: 36px 32px; box-shadow: 0 18px 50px rgba(78, 52, 140, .12); position: relative;
}
.auth-home {
  position: absolute; top: 22px; left: 24px; font-size: 13px; font-weight: 600; color: #7c5cff;
}
.auth-logo {
  text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .5px;
  background: linear-gradient(120deg, #7c5cff, #ff5a8a); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px;
}
.auth-title { text-align: center; font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { text-align: center; font-size: 13px; color: #8a82a6; margin-bottom: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 6px; }
.auth-label { font-size: 13px; font-weight: 600; color: #4a4366; margin-top: 10px; }
.auth-input {
  width: 100%; padding: 12px 14px; border: 1px solid #e3dcf2; border-radius: 12px; font-size: 15px;
  outline: none; transition: border-color .15s, box-shadow .15s; background: #fff;
}
.auth-input:focus { border-color: #7c5cff; box-shadow: 0 0 0 3px rgba(124, 92, 255, .14); }
.auth-btn {
  display: block; text-align: center; margin-top: 18px; padding: 13px 16px; border: none; border-radius: 12px;
  background: linear-gradient(90deg, #7c5cff, #ff5a8a); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: opacity .15s, transform .05s;
}
.auth-btn:hover { opacity: .94; }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:disabled { opacity: .6; cursor: default; }
.auth-msg { min-height: 18px; font-size: 13px; text-align: center; margin-top: 12px; }
.auth-msg-err { color: #e0417a; }
.auth-msg-ok { color: #1f9d6b; }
.auth-alt { text-align: center; font-size: 13px; color: #8a82a6; margin-top: 16px; }
.auth-alt a { color: #7c5cff; font-weight: 600; }
