.auth-page{
  min-height:calc(100vh - 72px);
  background:#f6f7f9;
  padding:68px 0;
}

.auth-layout{
  width:min(980px,calc(100% - 32px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) 420px;
  gap:34px;
  align-items:center;
}

.auth-copy .eyebrow{
  margin-bottom:12px;
}

.auth-copy h1{
  font-size:50px;
  line-height:1.04;
  margin:0 0 18px;
  letter-spacing:-.04em;
}

.auth-copy p{
  color:#666;
  font-size:16px;
  line-height:1.7;
  margin:0;
}

.auth-card{
  background:#fff;
  border:1px solid #e3e5e8;
  border-radius:18px;
  padding:28px;
  box-shadow:0 18px 50px rgba(0,0,0,.06);
}

.auth-card h2{
  margin:0 0 18px;
  font-size:27px;
  letter-spacing:-.03em;
}

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

.auth-field label{
  display:block;
  margin-bottom:7px;
  color:#666;
  font-size:12px;
  font-weight:800;
}

.auth-field input{
  width:100%;
  height:46px;
  padding:0 13px;
  border:1px solid #dfe1e5;
  border-radius:10px;
  background:#fff;
  font-size:14px;
}

.auth-field input:focus{
  outline:none;
  border-color:#111;
}

.auth-submit,
.auth-google,
.auth-secondary{
  width:100%;
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
}

.auth-submit{
  border:0;
  background:#111;
  color:#fff;
}

.auth-google{
  margin-top:10px;
  border:1px solid #dfe1e5;
  background:#fff;
  color:#111;
}

.auth-secondary{
  margin-top:10px;
  border:1px solid #dfe1e5;
  background:#fff;
  color:#111;
}

.auth-divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin:16px 0;
  color:#aaa;
  font-size:11px;
  font-weight:800;
}

.auth-divider:before,
.auth-divider:after{
  content:"";
  height:1px;
  flex:1;
  background:#eceef1;
}

.auth-status{
  min-height:19px;
  margin:12px 0 0;
  color:#666;
  font-size:13px;
  line-height:1.5;
}

.auth-status.error{
  color:#b42318;
}

.auth-status.ok{
  color:#157347;
}

.auth-profile{
  display:grid;
  gap:10px;
  margin:16px 0 0;
}

.auth-profile-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:13px 0;
  border-bottom:1px solid #f0f1f3;
  color:#666;
  font-size:13px;
}

.auth-profile-row strong{
  color:#111;
}

.role-pill{
  display:inline-flex;
  align-items:center;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  background:#f1f1f1;
  color:#555;
  font-size:12px;
  font-weight:800;
}

.role-pill.admin{
  background:#111;
  color:#fff;
}

.auth-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:18px;
}

.auth-actions .auth-secondary,
.auth-actions .auth-submit{
  margin-top:0;
  height:46px;
}

.auth-as-section{
  margin-top:24px;
  padding-top:20px;
  border-top:1px solid #eceef1;
}

.auth-as-section h3{
  margin:0 0 12px;
  font-size:18px;
}

.auth-as-list{
  display:grid;
  gap:10px;
}

.auth-as-item{
  border:1px solid #e3e5e8;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}

.auth-as-item summary{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:5px 9px;
  align-items:center;
  padding:13px;
  cursor:pointer;
  list-style:none;
}

.auth-as-item summary::-webkit-details-marker{
  display:none;
}

.auth-as-item summary strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.auth-as-item summary small{
  grid-column:2;
  color:#888;
  font-size:11px;
}

.auth-as-detail{
  padding:0 13px 14px;
  border-top:1px solid #f0f1f3;
}

.auth-as-detail dl{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 14px;
  margin:13px 0;
}

.auth-as-detail dl div{
  min-width:0;
}

.auth-as-detail dt{
  color:#888;
  font-size:10px;
  font-weight:800;
}

.auth-as-detail dd{
  margin:3px 0 0;
  color:#333;
  font-size:12px;
}

.auth-as-body{
  white-space:pre-line;
  line-height:1.65;
  color:#333;
  font-size:13px;
}

.auth-as-files{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}

.auth-as-files img{
  width:100%;
  max-height:190px;
  object-fit:contain;
  border-radius:10px;
  background:#111;
}

.auth-as-detail h4{
  margin:16px 0 8px;
  font-size:14px;
}

.auth-as-reply{
  padding:12px;
  border-radius:10px;
  background:#f6f7f9;
}

.auth-as-reply p{
  margin:6px 0;
  color:#333;
  white-space:pre-line;
}

.auth-as-reply small,
.auth-as-empty{
  color:#888;
  font-size:12px;
}

@media(max-width:820px){
  .auth-layout{
    grid-template-columns:1fr;
  }

  .auth-copy h1{
    font-size:38px;
  }
}
