/**
 * login-select.css - 登录身份选择页
 * 赛镜智评 - 单色极简风格
 */

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

/* ---- Page ---- */
.auth-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  position:relative;
  overflow:hidden;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  color:#1e293b;
  background:#0f172a;
}
.auth-page::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(0,0,0,.45),rgba(0,0,0,.15));
  z-index:1;
}

/* ---- Card ---- */
.role-select-card{
  position:relative;
  z-index:2;
  width:100%;
  max-width:840px;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(24px) saturate(1.4);
  -webkit-backdrop-filter:blur(24px) saturate(1.4);
  border:1px solid rgba(255,255,255,.5);
  border-radius:24px;
  padding:44px 40px 36px;
  box-shadow:0 32px 64px rgba(0,0,0,.22);
  animation:cardUp .5s cubic-bezier(.16,1,.3,1) both;
}
@keyframes cardUp{
  from{opacity:0;transform:translateY(24px) scale(.97)}
  to{opacity:1;transform:none}
}

/* ---- Header ---- */
.role-select-header{
  text-align:center;
  margin-bottom:32px;
}
.role-select-title{
  font-size:clamp(28px,4.5vw,40px);
  font-weight:800;
  color:#1e293b;
  letter-spacing:.03em;
  line-height:1.15;
}
.role-select-subtitle{
  font-size:15px;
  color:#94a3b8;
  margin-top:8px;
}

/* ---- Grid ---- */
.role-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

/* ---- Role Card ---- */
.role-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:180px;
  padding:32px 16px 26px;
  border-radius:14px;
  background:#f8fafc;
  border:1.5px solid #e2e8f0;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
  transition:transform .2s,box-shadow .2s,border-color .2s,background .2s;
  animation:itemIn .45s cubic-bezier(.16,1,.3,1) both;
}
.role-card:nth-child(1){animation-delay:.05s}
.role-card:nth-child(2){animation-delay:.12s}
.role-card:nth-child(3){animation-delay:.19s}

@keyframes itemIn{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:none}
}

.role-card:hover{
  transform:translateY(-4px);
  background:#fff;
  border-color:#cbd5e1;
  box-shadow:0 12px 28px rgba(15,23,42,.1);
}
.role-card:active{transform:translateY(-1px)}

/* ---- Icon ---- */
.role-card-icon{
  width:42px;
  height:42px;
  margin-bottom:16px;
  color:#475569;
  transition:transform .2s;
}
.role-card:hover .role-card-icon{
  transform:scale(1.08);
  color:#334155;
}

/* ---- Text ---- */
.role-card-title{
  font-size:20px;
  font-weight:700;
  color:#1e293b;
  margin-bottom:6px;
  text-align:center;
}
.role-card-desc{
  font-size:13px;
  color:#94a3b8;
  text-align:center;
  line-height:1.45;
}
.role-card:hover .role-card-desc{color:#64748b}

/* ---- Footer ---- */
.role-select-footer{
  margin-top:24px;
  text-align:center;
}
.role-select-footer a{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:14px;
  color:#94a3b8;
  text-decoration:none;
  transition:color .18s,transform .18s;
}
.role-select-footer a:hover{
  color:#475569;
  transform:translateX(-3px);
}

/* ---- Responsive ---- */
@media(max-width:900px){
  .role-select-card{max-width:620px;padding:36px 28px 30px}
  .role-grid{grid-template-columns:repeat(2,1fr)}
  .role-card--team{grid-column:1/-1;max-width:300px;justify-self:center}
}
@media(max-width:600px){
  .role-select-card{margin:8px;padding:28px 18px 22px;border-radius:20px}
  .role-grid{grid-template-columns:1fr;gap:12px}
  .role-card,.role-card--team{min-height:130px;max-width:none;grid-column:auto;padding:22px 14px}
  .role-card-icon{width:36px;height:36px;margin-bottom:12px}
  .role-card-title{font-size:18px}
}
