*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  width:100%;
  min-height:100%;
}

body{
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;

  background:#f7f7f7;
  color:#202020;

  -webkit-tap-highlight-color:transparent;
}

button,
input{
  font:inherit;
}

button{
  -webkit-appearance:none;
  appearance:none;
}

.auth-page{
  min-height:100dvh;

  padding:
    max(42px, env(safe-area-inset-top))
    24px
    max(26px, env(safe-area-inset-bottom));

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}

.auth-card{
  width:100%;
  max-width:420px;
}

.brand-mark{
  width:58px;
  height:58px;

  margin:0 auto 32px;

  border-radius:18px;

  display:flex;
  align-items:center;
  justify-content:center;

  background:#202020;
  color:#fff;

  font-size:24px;
  font-weight:700;

  box-shadow:
    0 8px 24px rgba(0,0,0,.10);
}

.auth-title{
  text-align:center;
  margin-bottom:38px;
}

.auth-title h1{
  margin:0;

  font-size:30px;
  line-height:1.25;
  font-weight:700;

  letter-spacing:-.5px;
}

.auth-title p{
  margin:12px 0 0;

  font-size:15px;
  line-height:1.6;

  color:#999;
}

.field{
  display:block;
  margin-bottom:20px;
}

.field > span{
  display:block;

  margin:0 0 9px 3px;

  font-size:14px;
  font-weight:500;

  color:#555;
}

.field input{
  width:100%;
  height:56px;

  padding:0 17px;

  border:1px solid #e2e2e2;
  border-radius:17px;

  outline:none;

  background:#fff;
  color:#222;

  font-size:16px;

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.field input::placeholder{
  color:#bbb;
}

.field input:focus{
  border-color:#a8a8a8;

  box-shadow:
    0 0 0 4px rgba(0,0,0,.035);

  transform:translateY(-1px);
}

.password-wrap{
  position:relative;
}

.password-wrap input{
  padding-right:72px;
}

.password-toggle{
  position:absolute;

  top:50%;
  right:15px;

  transform:translateY(-50%);

  border:0;
  background:transparent;

  padding:8px 4px;

  color:#8b8b8b;

  font-size:13px;

  cursor:pointer;
}

.password-toggle:active{
  opacity:.55;
}

.auth-error{
  min-height:21px;

  margin:-3px 3px 8px;

  font-size:13px;
  line-height:21px;

  color:#d64545;
}

.auth-submit{
  width:100%;
  height:56px;

  margin-top:5px;

  border:0;
  border-radius:18px;

  background:#202020;
  color:#fff;

  font-size:17px;
  font-weight:600;

  cursor:pointer;

  transition:
    transform .14s cubic-bezier(.2,.8,.2,1),
    opacity .14s ease,
    border-radius .14s ease;
}

.auth-submit:active{
  transform:scale(.985, .96);
  border-radius:20px;
}

.auth-switch{
  margin-top:25px;

  display:flex;
  justify-content:center;
  align-items:center;
  gap:5px;

  font-size:14px;
  color:#999;
}

.auth-switch button{
  border:0;
  background:transparent;

  padding:6px 3px;

  color:#222;
  font-weight:600;

  cursor:pointer;
}

.auth-switch button:active{
  opacity:.55;
}

.auth-footer{
  position:fixed;

  left:0;
  right:0;

  bottom:max(22px, env(safe-area-inset-bottom));

  text-align:center;

  font-size:12px;
  color:#c0c0c0;

  pointer-events:none;
}

@media (max-height:650px){
  .auth-page{
    justify-content:flex-start;
    padding-top:55px;
  }

  .brand-mark{
    margin-bottom:24px;
  }

  .auth-title{
    margin-bottom:28px;
  }

  .auth-footer{
    position:static;
    margin-top:38px;
  }
}

/* ===== V2 品牌标志：同频共振 ===== */

.brand-mark{
  position:relative;
  font-size:0;
}

.brand-mark span{
  position:absolute;
  left:50%;
  top:50%;
  width:8px;
  height:8px;
  margin:-4px 0 0 -4px;
  border-radius:50%;
  background:#fff;
}

.brand-mark::before,
.brand-mark::after{
  content:"";
  position:absolute;
  top:50%;
  width:15px;
  height:30px;
  margin-top:-15px;
  border:3px solid #fff;
  border-top-color:transparent;
  border-bottom-color:transparent;
  border-radius:50%;
}

.brand-mark::before{
  left:12px;
  border-left-color:transparent;
}

.brand-mark::after{
  right:12px;
  border-right-color:transparent;
}
