:root{
  --gold:#c7a446;
  --gold2:#e0c06a;
  --dark:#2b1d12;
  --dark2:#1f140c;
  --beige:#f2e4c4;
  --brown:#3b2615;
}

*{box-sizing:border-box}
html,body{height:100%}
body.reg-page, body.reset-page{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(255,214,120,.22), transparent 65%),
    radial-gradient(900px 520px at 50% 100%, rgba(255,214,120,.12), transparent 70%),
    linear-gradient(180deg, #140e09, #2b1d12);
  color: var(--brown);
}

.reg-shell{
  min-height:100dvh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}

.reg-card{
  width:min(640px, 100%);
  background: url("/css/img/portal/portalcontent.png") center/cover no-repeat;
  border: 3px solid rgba(199,164,70,.9);
  border-radius: 18px;
  box-shadow:
    0 22px 60px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.14);
  padding: 18px 18px 14px;
}

.reg-head h1{
  margin: 0 0 6px;
  font-size: 30px;
  letter-spacing:.2px;
  color: #23150d;
}
.reg-sub{
  margin:0 0 14px;
  color: rgba(59,38,21,.85);
  font-size: 14px;
}

.reg-form .field{margin: 10px 0 12px;}
.reg-form label{
  display:block;
  margin: 0 0 6px;
  font-weight: 700;
  color: rgba(59,38,21,.95);
}

.reg-form input[type="text"],
.reg-form input[type="email"],
.reg-form input[type="password"]{
  width:100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 2px solid rgba(199,164,70,.9);
  background: rgba(43,29,18,.88);
  color: var(--beige);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 6px 16px rgba(0,0,0,.16);
}
.reg-form input::placeholder{color: rgba(242,228,196,.55);}
.reg-form input:focus{
  border-color: rgba(224,192,106,1);
  box-shadow:
    0 0 0 3px rgba(199,164,70,.25),
    inset 0 1px 0 rgba(255,255,255,.10),
    0 6px 16px rgba(0,0,0,.16);
}

.row{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-top: 4px;
}

.gender{
  display:flex;
  align-items:center;
  gap: 18px;
  flex-wrap:nowrap;
}
.gender .label{
  font-weight:700;
  margin-right: 2px;
  color: rgba(59,38,21,.95);

  min-width: 90px;
}
.hint{
  flex:1;
  min-width: 180px;
  padding-top: 18px;
  font-size: 14px;
  color: rgba(59,38,21,.78);
}

.opt{
  margin-top: 1px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  user-select:none;
  cursor:pointer;
  color: rgba(59,38,21,.92);
  font-weight:600;
}

.opt input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.ui-radio{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(199,164,70,.95);
  background: rgba(43,29,18,.9);
  display:inline-block;
  position:relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.opt input:checked + .ui-radio::after{
  content:"";
  position:absolute;
  inset: 4px;
  border-radius:50%;
  background: rgba(224,192,106,1);
  box-shadow: 0 0 0 2px rgba(0,0,0,.12);
}

.terms{
  margin-top: 10px;
  display:flex;
  align-items:flex-start;
  gap: 10px;
  cursor:pointer;
  user-select:none;
  color: rgba(59,38,21,.92);
  font-weight: 600;
}
.terms input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.ui-check{
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(199,164,70,.95);
  background: rgba(43,29,18,.9);
  display:inline-block;
  position:relative;
  flex:0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  margin-top: 2px;
}
.terms input:checked + .ui-check::after{
  content:"";
  position:absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border-right: 3px solid rgba(224,192,106,1);
  border-bottom: 3px solid rgba(224,192,106,1);
  transform: rotate(40deg);
}

.terms-text a{
  color: #7a4b11;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.terms-text a:hover{color:#5f3810}

.msg{
  min-height: 22px;
  margin-top: 10px;
  font-weight: 700;
}
.msg.ok{color:#1f5a2e}
.msg.bad{color:#8a1f1f}

.actions{
  display:flex;
  gap: 12px;
  margin-top: 14px;
}
.btn{
  height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  border: 2px solid rgba(199,164,70,.95);
  background: rgba(43,29,18,.92);
  color: var(--beige);
  font-weight: 800;
  letter-spacing:.2px;
  cursor:pointer;
  flex:1;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 10px 22px rgba(0,0,0,.18);
}
.btn:hover{
  border-color: rgba(224,192,106,1);
  box-shadow:
    0 0 0 3px rgba(199,164,70,.18),
    inset 0 1px 0 rgba(255,255,255,.10),
    0 10px 22px rgba(0,0,0,.18);
}
.btn:disabled{opacity:.65; cursor:not-allowed}
.btn.ghost{
  background: rgba(43,29,18,.92);
  color: var(--beige);
  border-color: rgba(199,164,70,.95);
}

.suggestions{
  margin-top: 8px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.suggestions .chip{
  border: 1px solid rgba(199,164,70,.9);
  background: rgba(43,29,18,.75);
  color: var(--beige);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  cursor:pointer;
  user-select:none;
}
.suggestions .chip:hover{border-color: rgba(224,192,106,1);}

.reg-foot{
  margin-top: 12px;
  display:flex;
  justify-content:center;
  font-size: 12px;
  color: rgba(59,38,21,.75);
}

@media (max-width: 520px){
  .reg-card{ padding: 14px 14px 12px; }
  .reg-head h1{ font-size: 26px; }
  .row{ flex-direction: column; gap: 6px; }
  .gender{ flex-wrap: wrap; }
  .gender .label{ min-width: auto; }
    .actions{ flex-direction: column; }
}
