@charset "UTF-8";

/* ============================================================
   GemDesign IdcAuthPage 玻璃拟态登录注册样式
   仅应用于 .L_code 容器内，不影响站点其他页面
   ============================================================ */

/* ---------- 变量 ---------- */
.L_code {
  --gda-primary: #3B82F6;
  --gda-primary-hover: #2563EB;
  --gda-secondary: #60A5FA;
  --gda-cta: #F97316;
  --gda-cta-hover: #EA580C;
  --gda-dark: #1E293B;
  --gda-light: #F8FAFC;
  --gda-text: #334155;
  --gda-muted: #64748B;
  --gda-border: rgba(255, 255, 255, 0.45);
  --gda-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --gda-shadow-md: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
  --gda-shadow-lg: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

/* ---------- 右侧背景 ---------- */
.L_code .L_code-right-side {
  position: relative;
  background-color: #F8FAFC;
  background-image:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(249, 115, 22, 0.10) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(96, 165, 250, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
  overflow: hidden;
}

/* 装饰模糊球 */
.L_code .L_code-right-side::before,
.L_code .L_code-right-side::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  opacity: 0.8;
  animation: gda-float 10s infinite ease-in-out;
  pointer-events: none;
}

.L_code .L_code-right-side::before {
  width: 280px;
  height: 280px;
  background: rgba(59, 130, 246, 0.30);
  top: -60px;
  left: -60px;
}

.L_code .L_code-right-side::after {
  width: 360px;
  height: 360px;
  background: rgba(249, 115, 22, 0.20);
  bottom: -100px;
  right: -80px;
  animation-delay: -3s;
}

@keyframes gda-float {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ---------- 玻璃卡片 ---------- */
.L_code .L_code-right-form {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gda-border);
  box-shadow: var(--gda-shadow-md);
  border-radius: 20px;
  padding: 40px 0;
  width: 760px;
  max-width: 92vw;
  position: relative;
  z-index: 2;
  top: auto;
}

@supports not (backdrop-filter: blur(20px)) {
  .L_code .L_code-right-form {
    background: rgba(255, 255, 255, 0.92);
  }
}

/* 左侧扫码/QQ群区域玻璃化 */
.L_code .L_code-right-form .L_code-scan-login {
  border-right: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0 24px;
}

/* ---------- 标题与 Tab ---------- */
.L_code .L_code-form-content {
  align-items: stretch;
}

.L_code .code_login-tab {
  display: flex;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 5px;
  gap: 4px;
  margin-bottom: 24px;
}

.L_code .code_login-tab .login-tab-item {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gda-text);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.L_code .code_login-tab .login-tab-item:hover {
  background: rgba(255, 255, 255, 0.55);
}

.L_code .code_login-tab .login-tab-item.active,
.L_code-right-side .L_code-right-form .L_code-login-form .code_login-tab .login-tab-item.active {
  background: var(--gda-primary) !important;
  color: #fff !important;
  border-color: var(--gda-primary) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.L_code .code_login-tab .login-tab-separate {
  display: none;
}

.L_code .text-register {
  text-align: center;
  color: var(--gda-muted);
  font-size: 14px;
}

.L_code .text-register a {
  color: var(--gda-primary);
  font-weight: 500;
}

.L_code .text-register a:hover {
  text-decoration: underline;
}

/* ---------- 表单输入框 ---------- */
.L_code .L_code-login-form .form-group {
  margin-bottom: 18px;
}

.L_code .L_code-login-form label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gda-dark);
  margin-bottom: 8px;
}

.L_code .L_code-login-form label::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--gda-primary);
  font-size: 13px;
}

.L_code .L_code-login-form input.form-control,
.L_code .L_code-login-form select.form-control,
.L_code .L_code-login-form textarea.form-control {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 40px;
  height: 40px;
  color: var(--gda-dark);
  outline: none;
  box-shadow: none;
  transition: all 0.25s ease;
}

.L_code .L_code-login-form input.form-control::placeholder {
  color: #94A3B8;
}

.L_code .L_code-login-form input.form-control:focus,
.L_code .L_code-login-form select.form-control:focus,
.L_code .L_code-login-form textarea.form-control:focus {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.L_code .L_code-login-form input.form-control.is-invalid {
  border-color: #EF4444;
}

.L_code .L_code-login-form input.form-control.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

/* 手机号区号下拉与输入框对齐 */
.L_code .L_code-login-form .form-group .custom-dropdown-selection {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-right: none;
  border-radius: 12px 0 0 12px;
  line-height: 38px;
  height: 40px;
  color: var(--gda-dark);
}

.L_code .L_code-login-form .form-group .input-group .form-control {
  border-radius: 0 12px 12px 0;
  border-left: none;
}

.L_code .L_code-login-form .invalid-feedback {
  font-size: 12px;
  color: #EF4444;
  margin-top: 4px;
}

/* ---------- 复选框 ---------- */
.L_code .L_code-login-form input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: rgba(255, 255, 255, 0.55);
  accent-color: var(--gda-primary);
  cursor: pointer;
}

/* ---------- 按钮 ---------- */
.L_code .L_code-login-form .btn {
  border-radius: 12px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.L_code .L_code-login-form .btn-primary {
  background: rgba(59, 130, 246, 0.92);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.25);
}

.L_code .L_code-login-form .btn-primary:hover {
  background: var(--gda-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.35);
}

.L_code .L_code-login-form .btn-secondary {
  background: rgba(255, 255, 255, 0.45);
  color: var(--gda-dark);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}

.L_code .L_code-login-form .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.65);
}

/* 验证码图片与输入框对齐 */
.L_code .L_code-login-form .input-group-append {
  height: 40px;
}

.L_code .L_code-login-form .input-group-append img,
.L_code .L_code-login-form .input-group-append .btn {
  height: 40px;
  border-radius: 0 12px 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-left: none;
  background: rgba(255, 255, 255, 0.55);
  color: var(--gda-dark);
}

.L_code .L_code-login-form .btn-block {
  width: 100%;
}

/* 获取验证码按钮 */
.L_code .L_code-login-form .input-group-append .btn,
.L_code .L_code-login-form .input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  white-space: nowrap;
}

/* ---------- 辅助链接 ---------- */
.L_code .L_code-login-form a.text-primary {
  color: var(--gda-primary);
  font-weight: 500;
}

.L_code .L_code-login-form a.text-primary:hover {
  text-decoration: underline;
}

/* ---------- 其他登录方式 ---------- */
.L_code .Oauth_login {
  margin-top: 28px;
}

.L_code .Oauth_login .other-login {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.L_code .Oauth_login .other-login .gray-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  top: 50%;
}

.L_code .Oauth_login .other-login .gray-text {
  position: relative;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 13px;
  color: var(--gda-muted);
}

.L_code .Oauth_login .list-inline {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.L_code .Oauth_login .list-inline-item a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.L_code .Oauth_login .list-inline-item a:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
}

.L_code .Oauth_login .list-inline-item a img,
.L_code .Oauth_login .list-inline-item a svg {
  max-width: 22px;
  max-height: 22px;
}

/* ---------- 服务条款 ---------- */
.L_code .serviceTerms {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--gda-muted);
}

.L_code .serviceTerms a {
  color: var(--gda-primary);
  font-weight: 500;
}

/* ---------- 左侧区域适配 ---------- */
.L_code .L_code-left-side {
  position: relative;
}

.L_code .L_code-left-side .L_code-content a {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* 手机端顶部"回到首页"按钮改为灰色，避免与白色背景冲突 */
.L_code .L_code-left-side .L_code-content .GoBackToTheHomepage {
  color: var(--gda-muted);
  text-shadow: none;
}

/* ---------- 底部版权 ---------- */
.L_code .L_code-right-footer {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: var(--gda-muted);
  z-index: 2;
}

.L_code .L_code-right-footer a {
  color: var(--gda-muted);
  margin: 0 8px;
  transition: color 0.2s;
}

.L_code .L_code-right-footer a:hover {
  color: var(--gda-primary);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .L_code .L_code-right-form {
    width: 92vw;
    flex-direction: column;
    padding: 28px;
  }

  .L_code .L_code-right-form .L_code-scan-login {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .L_code .L_code-login-form {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* 手机端铺满宽度，消除右侧空白 */
  .L_code .L_code-right-side .L_code-right-form {
    width: 100% !important;
    max-width: 100%;
    border-radius: 0;
    padding: 38px 16px 78px !important;
  }

  .L_code .L_code-right-form .L_code-scan-login {
    width: 100%;
    min-width: 100%;
    padding: 0;
    border: none;
  }

  .L_code .L_code-login-form {
    width: 100%;
    padding: 0 !important;
  }

  .L_code .L_code-login-form .form-group,
  .L_code .L_code-login-form .btn-block {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .L_code .code_login-tab .login-tab-item {
    font-size: 13px;
    padding: 9px 8px;
  }

  .L_code .L_code-login-form .btn {
    font-size: 14px;
    padding: 0 16px;
  }
}
