/* =========================================================
   register.css
   主题颜色全部读取 config.css，不修改公共变量
   ========================================================= */

*{
  box-sizing:border-box;
}

html,
body{
  width:100%;
  min-height:100%;
  margin:0;
}

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,
    "PingFang SC","Microsoft YaHei",Arial,sans-serif;
}

.register-page{
  color:var(--text-color);
  background:var(--app-bg);
}

.page{
  position:relative;
  min-height:100vh;
  min-height:100dvh;
  overflow:hidden;
  background:
    radial-gradient(circle at 15% 3%, rgba(255,255,255,.14), transparent 28%),
    radial-gradient(circle at 92% 25%, rgba(255,255,255,.08), transparent 25%),
    linear-gradient(160deg, var(--app-bg) 0%, var(--btn1-bg) 58%, var(--footer-bg) 100%);
}

.page::before,
.page::after{
  content:"";
  position:fixed;
  pointer-events:none;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.10);
}

.page::before{
  width:420px;
  height:420px;
  left:-210px;
  top:16%;
  box-shadow:0 0 0 55px rgba(255,255,255,.025);
}

.page::after{
  width:300px;
  height:300px;
  right:-150px;
  bottom:5%;
  box-shadow:0 0 0 42px rgba(255,255,255,.025);
}

.register-shell{
  position:relative;
  z-index:1;
  width:100%;
  max-width:620px;
  min-height:100vh;
  min-height:100dvh;
  margin:0 auto;
  padding:24px 24px 34px;
}

/* 顶栏 */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:48px;
  margin-bottom:4px;
}

/* =========================
   短信验证码提示
   ========================= */
.sms-tip {
  display: flex;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0 16px;
  padding: 13px 14px;
  border: 1.5px solid #55d6a5;
  border-radius: 15px;
  background: #effff8;
  color: #15945f;
  box-shadow: 0 2px 8px rgba(22, 184, 115, 0.06);
}

/* 左侧圆形 i */
.sms-tip-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-right: 11px;
  border-radius: 50%;
  background: #16b873;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  font-family: Arial, sans-serif;
}

/* 提示文字 */
.sms-tip-text {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
  color: #15945f;
}

.back{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  padding:0;
  border:0;
  border-radius:50%;
  color:var(--text-color);
  background:rgba(255,255,255,.10);
  cursor:pointer;
  transition:background .2s ease, transform .2s ease;
}

.back:hover{
  background:rgba(255,255,255,.18);
  transform:translateX(-2px);
}

.back-ico path{
  stroke:currentColor;
}

.register-panel{
  padding:0 4px;
}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:126px;
  padding:8px 0 4px;
}

.register-logo{
  display:block;
  width:auto;
  height:110px;
  max-width:78%;
  object-fit:contain;
  filter:drop-shadow(0 12px 18px rgba(60,0,0,.25));
}

.title{
  margin:4px 0 21px;
  color:var(--text-color);
  font-size:27px;
  font-weight:800;
  line-height:1.2;
  text-align:center;
}

/* 表单 */
.field{
  position:relative;
  margin-bottom:16px;
}

.input,
.address,
.btn-code{
  font:inherit;
}

.normal-input,
.control-box{
  width:100%;
  height:62px;
  border:2px solid transparent;
  border-radius:15px;
  color:#1f2937;
  background:#fff;
  box-shadow:0 12px 28px rgba(65,0,0,.13);
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.normal-input{
  padding:0 18px 0 60px;
  outline:none;
  font-size:16px;
}

.normal-input::placeholder,
.control-box .input::placeholder{
  color:#9ca3af;
}

.normal-input:focus,
.control-box:focus-within{
  border-color:var(--active-color);
  box-shadow:0 14px 32px rgba(65,0,0,.18), 0 0 0 4px rgba(255,255,255,.12);
  transform:translateY(-1px);
}

.normal-input[readonly]{
  color:#6b7280;
  background:#f2f3f5;
}

.icon{
  position:absolute;
  z-index:3;
  top:31px;
  left:20px;
  width:22px;
  height:22px;
  transform:translateY(-50%);
  pointer-events:none;
}

.icon path,
.icon circle,
.icon rect{
  stroke:#253142;
}

/* 手机号区号 */
.phone-row{
  display:grid;
  grid-template-columns:120px minmax(0, 1fr);
  overflow:hidden;
}

.address{
  width:100%;
  height:100%;
  padding:0 12px 0 51px;
  border:0;
  border-right:1px solid #e5e7eb;
  outline:none;
  color:#253142;
  background:#fff;
  cursor:pointer;
}

.phone-row .input{
  width:100%;
  min-width:0;
  height:100%;
  padding:0 15px;
  border:0;
  outline:none;
  color:#1f2937;
  background:transparent;
  font-size:16px;
}

/* 验证码 */
.code-row{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  overflow:hidden;
}

.code-row .input{
  width:100%;
  min-width:0;
  height:100%;
  padding:0 12px 0 58px;
  border:0;
  outline:none;
  color:#1f2937;
  background:transparent;
  font-size:16px;
}

.btn-code{
  min-width:112px;
  height:40px;
  margin-right:9px;
  padding:0 14px;
  border:0;
  border-radius:11px;
  color:var(--text-color);
  background:linear-gradient(135deg, var(--app-bg), var(--btn-bg));
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
}

.btn-code:hover{
  filter:brightness(1.08);
}

.btn-code.disabled,
.btn-code:disabled{
  opacity:.6;
  cursor:not-allowed;
}

/* 协议 */
.agree{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:3px 6px 20px;
  color:rgba(255,255,255,.94);
  font-size:15px;
  line-height:1.45;
  cursor:pointer;
  user-select:none;
}

.agree input{
  flex:0 0 auto;
  width:21px;
  height:21px;
  margin:0;
  accent-color:var(--active-color);
  cursor:pointer;
}

/* 注册按钮 */
.register-btn{
  width:100%;
  height:64px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  color:var(--text-color);
  background:linear-gradient(135deg, var(--btn-bg), var(--footer-bg));
  box-shadow:0 15px 32px rgba(65,0,0,.27);
  font-size:20px;
  font-weight:800;
  letter-spacing:.3px;
  cursor:pointer;
  transition:filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.register-btn:hover{
  filter:brightness(1.08);
  transform:translateY(-2px);
  box-shadow:0 19px 38px rgba(65,0,0,.32);
}

.register-btn:active{
  transform:translateY(0);
}

.register-btn:disabled{
  opacity:.68;
  cursor:not-allowed;
  transform:none;
}

/* 登录入口 */
.bottom-link{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:7px 12px;
  padding:23px 10px 25px;
  color:rgba(255,255,255,.92);
  font-size:16px;
  text-align:center;
}

.bottom-link a{
  color:var(--text-color);
  font-weight:800;
  text-decoration:none;
}

.bottom-link a:hover{
  color:var(--active-color);
}

/* 底部招聘图 */
.recruitment{
  width:100%;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  background:var(--footer-bg);
  box-shadow:0 18px 42px rgba(55,0,0,.30);
}

.recruitment img{
  display:block;
  width:100%;
  height:auto;
}

/* =========================================================
   public/lang 语言组件适配
   ========================================================= */

.register-shell .nav-right{
  position:relative !important;
  inset:auto !important;
  width:auto !important;
  height:auto !important;
  margin:0 !important;
  padding:0 !important;
}

.register-shell .nav-right .nav-menus{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  margin:0;
  padding:0;
  list-style:none;
}

.register-shell .language-nav{
  position:relative;
}

.register-shell .translate_wrapper .current_lang{
  cursor:pointer;
  user-select:none;
}

.register-shell .translate_wrapper .current_lang .lang{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:42px;
  padding:7px 13px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:23px;
  color:var(--text-color);
  background:rgba(255,255,255,.24);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  font-size:14px;
  white-space:nowrap;
}

.register-shell .translate_wrapper .more_lang{
  display:none;
  position:absolute;
  top:calc(100% + 9px);
  right:0;
  z-index:9999;
  width:220px;
  max-height:320px;
  padding:8px;
  overflow:auto;
  border:1px solid rgba(255,255,255,.25);
  border-radius:15px;
  color:#202938;
  background:rgba(255,255,255,.98);
  box-shadow:0 20px 45px rgba(45,0,0,.24);
}

.register-shell .translate_wrapper .more_lang .lang{
  display:flex;
  align-items:center;
  gap:8px;
  padding:9px 10px;
  border-radius:10px;
  cursor:pointer;
}

.register-shell .translate_wrapper .more_lang .lang:hover{
  color:var(--btn-bg);
  background:#fff1f1;
}

.register-shell .translate_wrapper.open .more_lang{
  display:block;
}

@media (min-width:769px){
  .register-shell{
    margin-top:28px;
    margin-bottom:28px;
    min-height:auto;
    border:1px solid rgba(255,255,255,.14);
    border-radius:28px;
    background:rgba(255,255,255,.045);
    box-shadow:0 28px 80px rgba(55,0,0,.25);
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
  }
}

/* 手机端 */
@media (max-width:768px){
  .page::before,
  .page::after{
    display:none;
  }

  .register-shell{
    max-width:520px;
    padding:
      max(14px, env(safe-area-inset-top))
      20px
      max(28px, env(safe-area-inset-bottom));
  }

  .brand{
    min-height:115px;
    padding:2px 0;
  }

  .register-logo{
    height:100px;
  }

  .title{
    margin:3px 0 18px;
    font-size:25px;
  }

  .normal-input,
  .control-box{
    height:58px;
  }

  .normal-input,
  .phone-row .input,
  .code-row .input{
    font-size:16px; /* 防止手机点击输入框自动放大 */
  }

  .icon{
    top:29px;
  }

  .register-btn{
    height:60px;
    border-radius:15px;
    font-size:19px;
  }

  .recruitment{
    border-radius:12px;
  }
}

@media (max-width:390px){
  .register-shell{
    padding-left:15px;
    padding-right:15px;
  }

  .phone-row{
    grid-template-columns:108px minmax(0, 1fr);
  }

  .address{
    padding-left:40px;
    padding-right:6px;
  }

  .btn-code{
    min-width:94px;
    padding:0 9px;
    font-size:13px;
  }

  .register-shell .translate_wrapper .more_lang{
    width:200px;
    max-height:270px;
  }
}
