/* Clean single-card auth pages: login, signup, tenant */

body.is-guest .el-login-clean-shell{
  flex:1 0 auto;
  width:100%;
  min-height:auto !important;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:20px 18px 10px !important;
}

body.is-guest .el-login-clean-card{
  width:min(100%, 440px);
  padding:30px 32px 22px !important;
  border-radius:28px;
  background:rgba(255,255,255,.98);
  border:1px solid rgba(226,232,240,.88);
  box-shadow:0 30px 90px rgba(0,0,0,.26);
  margin-bottom:0 !important;
}

body.is-guest .el-login-clean-card--signup{
  width:min(100%, 500px);
}

body.is-guest .el-login-clean-logo{
  display:flex;
  justify-content:center;
  margin-bottom:16px !important;
}

body.is-guest .el-login-clean-logo img{
  width:178px;
  max-width:72%;
  height:auto;
  object-fit:contain;
}

body.is-guest .el-login-clean-head{
  text-align:center;
  margin-bottom:18px !important;
}

body.is-guest .el-login-clean-head h1{
  margin:8px 0 7px !important;
  font-size:30px;
  line-height:1.05;
  letter-spacing:-.04em;
}

body.is-guest .el-login-clean-head p{
  margin:0;
  color:#64748b;
  font-size:14px;
  line-height:1.55;
}

body.is-guest .el-login-clean-form{
  gap:12px !important;
}

body.is-guest .el-login-clean-links{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:14px !important;
  padding-top:14px !important;
  padding-bottom:0 !important;
  border-top:1px solid rgba(226,232,240,.82);
  font-size:13px;
}

body.is-guest .el-login-clean-links a{
  font-weight:900;
  color:#2563eb;
  text-decoration:none;
}

body.is-guest .el-login-clean-links a:hover{
  text-decoration:underline;
}

body.is-guest .tenant-login-outside-card{
  margin-top:10px !important;
  margin-bottom:0 !important;
}

/* Keep request access form compact and crisp */
body.is-guest .el-login-clean-card--signup textarea.input{
  min-height:96px;
  resize:vertical;
}

/* Specifically remove leftover bottom air under login/tenant cards */
body.is-guest .el-login-clean-card > *:last-child{
  margin-bottom:0 !important;
}

body.is-guest .el-login-clean-card form{
  margin-bottom:0 !important;
}

body.is-guest .el-login-clean-card .auth-action-row:last-child{
  margin-bottom:0 !important;
}

@media (max-width:640px){
  body.is-guest .el-login-clean-shell{
    min-height:auto !important;
    justify-content:flex-start;
    padding:14px 14px 8px !important;
  }

  body.is-guest .el-login-clean-card{
    padding:22px 18px 18px !important;
    border-radius:24px;
  }

  body.is-guest .el-login-clean-head h1{
    font-size:26px;
  }

  body.is-guest .el-login-clean-links{
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:8px;
  }
}
