@charset "UTF-8";

/* ============================================
   魔方财务用户中心 - 登录/注册/密码重置样式
   设计风格：现代云厂商控制台（腾讯云/阿里云/京东云）
   ============================================ */

/* --- CSS Variables --- */
:root {
  --brand-primary: #1664ff;
  --brand-primary-hover: #0d47e6;
  --brand-primary-light: #e8f0ff;
  --brand-primary-bg: #f0f5ff;
  --text-primary: #1d2129;
  --text-secondary: #4e5969;
  --text-tertiary: #86909c;
  --text-placeholder: #c0c4cc;
  --border-color: #e5e6eb;
  --border-hover: #c9cdd4;
  --bg-page: #f2f3f5;
  --bg-input: #f7f8fa;
  --bg-input-hover: #f2f3f5;
  --bg-input-focus: #ffffff;
  --bg-white: #ffffff;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-input-focus: 0 0 0 2px rgba(22, 100, 255, 0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --left-panel-bg: linear-gradient(135deg, #0c2d6b 0%, #1664ff 50%, #3d7eff 100%);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* --- Reset & Base --- */
* { box-sizing: border-box; }

.body_wrapper {
  overflow: hidden;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Layout --- */
.frm-vh-md-100 { height: 100vh; }
.custom_height { height: 100%; }
.container.custom_height { overflow-y: auto; }

.mf_body {
  height: 100%;
  overflow-y: auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.f_content {
  height: 100%;
  width: 100%;
  display: flex;
}

@media (min-height: 767px) {
  .f_content { align-items: center; }
}

/* --- Header Top Bar --- */
.header_top {
  position: absolute;
  top: 0;
  left: 0;
  padding: 24px 40px;
  z-index: 10;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header_top .logo img {
  height: 36px;
  width: auto;
}

.header_top .form_footer_text {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 14px;
}

.header_top .form_footer_text a {
  color: var(--brand-primary);
  text-decoration: none;
}

.header_top .form_footer_text a:hover {
  text-decoration: underline;
}

/* --- Main Layout: Left Panel + Right Form --- */
.mf_signup_fullwidth_two {
  z-index: inherit;
  display: flex;
  height: 100vh;
}

.mf_signup_fullwidth_two .mf_left_fullwidth {
  width: 42%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 60px;
  background: var(--left-panel-bg);
  overflow: hidden;
}

.mf_signup_fullwidth_two .mf_right_fullwidth {
  width: 58%;
  background-color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.mf_signup_fullwidth_two .mf_right_fullwidth .mf_box {
  box-shadow: none;
  padding: 48px 64px;
  max-width: 520px;
  width: 100%;
  margin: 0;
}

/* --- Left Panel Content --- */
.cloud-login-card {
  padding: 0;
  position: relative;
  z-index: 2;
}

img.cloud-fontlogo {
  width: 140px;
  height: auto;
  margin-bottom: 40px;
  filter: brightness(0) invert(1);
}

.cloud-login-title {
  font-size: 28px;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 40px;
  font-weight: 600;
  margin-bottom: 48px;
}

.cloud-login-info {
  opacity: 0.85;
  font-size: 15px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.cloud-login-info div {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.cloud-login-info div::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  margin-right: 12px;
  flex-shrink: 0;
}

.cloud-login-footer {
  position: absolute;
  left: 60px;
  bottom: 32px;
  font-size: 12px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.2px;
  text-align: left;
  z-index: 2;
}

img.icp-ga {
  height: 14px;
  width: 14px;
  margin-right: 4px;
  vertical-align: middle;
}

/* --- Form Styles --- */
.form_title {
  font-size: 24px;
  line-height: 32px;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.mf_header {
  margin-bottom: 32px;
}

.mf_header p {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-tertiary);
  margin: 0;
}

/* Tab Navigation */
.affs-nav {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
}

.affs-nav .nav-item {
  flex: 1;
  text-align: center;
}

.affs-nav .nav-link {
  font-size: 15px;
  color: var(--text-tertiary);
  font-weight: 500;
  padding: 0 0 12px;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.affs-nav .nav-link:hover {
  color: var(--text-secondary);
}

.affs-nav .nav-link.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
  background: transparent;
}

/* Form Groups */
.signup_form .form-group,
.mf_box .form-group {
  position: relative;
  margin-bottom: 20px;
}

.signup_form .form-group label,
.mf_box .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 22px;
}

/* Input Fields */
.signup_form .form-group .form-control,
.mf_box .form-group .form-control,
.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  height: 44px;
  line-height: 22px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-primary);
  box-shadow: none;
  transition: all var(--transition-fast);
  width: 100%;
}

.form-control:hover {
  border-color: var(--border-hover);
  background: var(--bg-input-hover);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: var(--bg-input-focus);
  box-shadow: var(--shadow-input-focus);
}

.form-control::placeholder {
  color: var(--text-placeholder);
}

.form-control:-moz-placeholder { color: var(--text-placeholder); }
.form-control::-moz-placeholder { color: var(--text-placeholder); }
.form-control::-webkit-input-placeholder { color: var(--text-placeholder); }

/* Select */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2386909c' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.938 10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Input Group (Phone + Area Code / Verification Code) */
.input-group-prepend {
  width: auto;
}

.input-group-prepend .form-control {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
  min-width: 90px;
  text-align: center;
}

.input-group .form-control {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.input-group-append .btn {
  height: 44px;
  line-height: 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14px;
  white-space: nowrap;
  min-width: 110px;
}

/* Primary Button */
.thm_btn,
.btn-primary {
  width: 100%;
  font-size: 16px;
  line-height: 24px;
  background-color: var(--brand-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  border: none;
  padding: 10px 24px;
  box-shadow: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  font-weight: 500;
}

.thm_btn:hover,
.thm_btn:focus,
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(22, 100, 255, 0.3);
  outline: none;
}

.thm_btn:active,
.btn-primary:active {
  background-color: #0b3fcc;
  color: #ffffff;
}

/* Links */
a {
  text-decoration: none;
  color: var(--brand-primary);
}

a:hover {
  color: var(--brand-primary-hover);
}

.text-primary {
  color: var(--brand-primary) !important;
}

.text-primary:hover {
  color: var(--brand-primary-hover) !important;
}

.pointer { cursor: pointer; }

/* Form Footer */
.form_footer_text {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-tertiary);
  margin-bottom: 0;
}

.form_footer_text a {
  color: var(--brand-primary);
  font-weight: 500;
}

/* Divider */
.divider_border {
  position: relative;
  margin: 24px 0;
  text-align: center;
}

.divider_border::before,
.divider_border::after {
  position: absolute;
  content: "";
  width: calc(50% - 40px);
  height: 1px;
  top: 50%;
  background: var(--border-color);
}

.divider_border::before { left: 0; }
.divider_border::after { right: 0; }

.divider_border .or-text {
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 0 12px;
  margin: 0;
  background: var(--bg-white);
  position: relative;
  z-index: 1;
}

/* Social Login */
.social-list-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.social-list-item:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--brand-primary-light);
}

.social-list-item .icon {
  width: 20px;
  height: 20px;
}

/* Verification Code Image */
.imgCode {
  height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border-color);
  margin-left: 8px;
}

/* Captcha Input Row */
.code {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.code input {
  flex: 1;
  min-width: 0;
}

.code img {
  flex-shrink: 0;
}

/* Modal */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 24px;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 16px 24px;
}

.modal-footer .btn-outline-light {
  color: var(--text-secondary);
  border-color: var(--border-color);
  background: var(--bg-white);
}

.modal-footer .btn-outline-light:hover {
  background: var(--bg-page);
  color: var(--text-secondary);
}

/* Alert Messages */
.alert {
  border-radius: var(--radius-sm);
  font-size: 14px;
  border: none;
  padding: 12px 16px;
}

.alert-danger {
  background: #fff2f0;
  color: #cb2634;
}

.alert-success {
  background: #f0fff4;
  color: #00b42a;
}

/* Hidden Utility */
.hidden { display: none; }

/* Phone login mode toggles */
.allow_login_code_captcha { display: none; }

/* Checkbox */
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-primary);
  vertical-align: middle;
  margin-right: 4px;
  cursor: pointer;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1440px) {
  .mf_signup_fullwidth_two .mf_left_fullwidth {
    padding: 60px 48px;
  }
  .mf_signup_fullwidth_two .mf_right_fullwidth .mf_box {
    padding: 40px 48px;
  }
  .cloud-login-footer {
    left: 48px;
  }
}

@media (max-width: 1199px) {
  .mf_signup_fullwidth_two .mf_left_fullwidth {
    padding: 48px 36px;
  }
  .mf_signup_fullwidth_two .mf_right_fullwidth .mf_box {
    padding: 36px 40px;
  }
  .cloud-login-title {
    font-size: 24px;
    line-height: 36px;
  }
  .cloud-login-footer {
    left: 36px;
  }
}

@media (max-width: 991px) {
  .mf_signup_fullwidth_two .mf_left_fullwidth {
    display: none !important;
  }
  .mf_signup_fullwidth_two .mf_right_fullwidth {
    width: 100%;
  }
  .header_top {
    position: relative;
    padding: 16px 24px;
    background: var(--bg-white);
    box-shadow: 0 1px 0 0 var(--border-color);
  }
  .header_top .logo img {
    filter: unset;
    -webkit-filter: unset;
  }
  .mf_body {
    height: auto;
    min-height: 100vh;
  }
  .mf_signup_fullwidth_two {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .mf_signup_fullwidth_two .mf_right_fullwidth .mf_box {
    padding: 32px 24px;
  }
  .form_title {
    font-size: 20px;
  }
  .header_top {
    padding: 12px 16px;
  }
  .header_top .form_footer_text {
    display: none;
  }
}

@media (max-width: 576px) {
  .mf_signup_fullwidth_two .mf_right_fullwidth .mf_box {
    padding: 24px 16px;
  }
  .form_title {
    font-size: 18px;
  }
  .thm_btn, .btn-primary {
    font-size: 15px;
    padding: 9px 20px;
  }
}
