.head-actions .login-button,
.head-actions .signup-button,
.head-actions .logout-button{
  border:0;
  background:transparent;
  padding:0;
  color:#333;
  cursor:pointer;
}

.head-actions .signup-button{
  color:#ed1c24;
}

.auth-modal{
  position:fixed;
  inset:0;
  z-index:4000;
  display:none;
  place-items:center;
  padding:20px;
  background:rgba(0,0,0,.45);
}

.auth-modal.open{display:grid}

.auth-dialog{
  position:relative;
  width:min(620px,100%);
  max-height:calc(100vh - 40px);
  overflow:auto;
  border-radius:15px;
  background:#fff;
  box-shadow:0 28px 90px rgba(0,0,0,.3);
}

.auth-dialog-head{
  padding:24px 26px 0;
}

.auth-dialog-head span{
  color:#ed1c24;
  font-size:12px;
  letter-spacing:.14em;
}

.auth-dialog-head h2{
  margin:7px 0 5px;
  font-size:25px;
}

.auth-guide{
  margin:0;
  color:#666;
  font-size:14px;
}

.auth-close{
  position:absolute;
  top:15px;
  right:18px;
  border:0;
  background:none;
  font-size:27px;
  cursor:pointer;
}

.auth-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  margin-top:20px;
  border-bottom:1px solid #ddd;
}

.auth-tabs button{
  border:0;
  background:#f5f5f4;
  padding:14px;
  cursor:pointer;
}

.auth-tabs button.active{
  background:#fff;
  color:#ed1c24;
  border-bottom:2px solid #ed1c24;
}

.auth-view{
  padding:23px 26px 28px;
}

.auth-view[hidden]{display:none!important}

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

.auth-field>span{
  display:block;
  margin-bottom:7px;
  color:#222;
  font-size:14px;
}

.auth-field input,
.auth-field select{
  width:100%;
  height:44px;
  padding:0 12px;
  border:1px solid #c9c9c9;
  border-radius:7px;
  background:#fff;
  color:#171717;
}

.auth-two-column{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.auth-interest-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:7px;
  max-height:210px;
  overflow:auto;
  padding:12px;
  border:1px solid #ddd;
  border-radius:8px;
}

.auth-interest-grid label{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:12px;
}

.auth-interest-count{
  display:block;
  margin-top:7px;
  color:#666;
  font-size:12px;
}

.auth-consents{
  display:grid;
  gap:9px;
  margin:18px 0;
  padding:15px;
  background:#f7f7f6;
  border-radius:8px;
}

.auth-consents label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
}

.auth-submit{
  width:100%;
  min-height:46px;
  border:0;
  border-radius:8px;
  background:#ed1c24;
  color:#fff;
  cursor:pointer;
}

.auth-message{
  min-height:20px;
  margin:12px 0 0;
  color:#d52e2e;
  font-size:13px;
  text-align:center;
}

.auth-message.success{color:#23854a}

@media(max-width:560px){
  .auth-modal{padding:9px}
  .auth-dialog{max-height:calc(100vh - 18px)}
  .auth-dialog-head{padding:20px 17px 0}
  .auth-view{padding:19px 17px 23px}
  .auth-two-column{grid-template-columns:1fr}
  .auth-interest-grid{grid-template-columns:repeat(2,1fr)}
}
