.yc-login-page {
  --yc-login-primary: #5f66ff;
  --yc-login-primary-dark: #4f57ed;
  --yc-login-purple: #7b55d9;
  --yc-login-cyan: #32d2ff;
  --yc-login-teal: #39d8b8;
  --yc-login-ink: #182036;
  --yc-login-muted: #748098;
  --yc-login-line: #dfe6f7;
  --yc-login-surface: rgba(255, 255, 255, 0.82);
  position: relative;
  max-width: 1680px;
  margin: 0 auto 32px;
  padding: 0 10px 28px;
}

body .main-content .page-content {
  min-height: calc(100vh - 70px);
  background:
    linear-gradient(180deg, rgba(248, 250, 255, 0.92), rgba(255, 255, 255, 0.76)),
    url("/themes/clientarea/yangcube/assets_custom/img/login-ui/backgrounds/bg-login-page.png") center top / cover no-repeat fixed;
}

body .page-title-box {
  min-height: 56px;
  padding: 10px 2px 18px;
}

body .page-title-box h4 {
  color: #26324a;
  font-weight: 800;
  letter-spacing: 0;
}

body .breadcrumb,
body .breadcrumb a {
  color: #6e7891;
}

.yc-login-layout {
  min-height: min(780px, calc(100vh - 178px));
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(221, 228, 247, 0.9);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 24px 70px rgba(57, 65, 120, 0.13);
}

.yc-login-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 16%, rgba(95, 102, 255, 0.16), transparent 32%),
    radial-gradient(circle at 20% 86%, rgba(50, 210, 255, 0.14), transparent 34%);
}

.yc-login-visual-col,
.yc-login-form-col {
  position: relative;
  z-index: 1;
}

.yc-login-page .auth-full-bg,
.yc-login-page .auth-full-page-content {
  min-height: 100% !important;
}

.yc-login-page .auth-full-bg {
  height: 100% !important;
}

.yc-login-visual {
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  padding: 64px !important;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.42)),
    url("/themes/clientarea/yangcube/assets_custom/img/login-ui/backgrounds/bg-illustration-panel.png") center / cover no-repeat;
}

.yc-login-visual .bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.34)),
    url("/themes/clientarea/yangcube/assets_custom/img/login-ui/backgrounds/bg-illustration-panel.png") center / cover no-repeat;
}

.yc-login-visual::before,
.yc-login-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.yc-login-visual::before {
  right: -130px;
  top: 8%;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 102, 255, 0.22), transparent 68%);
  filter: blur(3px);
}

.yc-login-visual::after {
  left: -10%;
  bottom: 12%;
  width: 82%;
  height: 210px;
  transform: rotate(-13deg);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(95, 102, 255, 0.2), rgba(50, 210, 255, 0.18), rgba(255, 156, 180, 0.14));
}

.yc-login-visual-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.yc-login-visual .row.justify-content-center {
  justify-content: flex-start !important;
}

.yc-login-visual .col-lg-7 {
  max-width: 620px;
  flex: 0 0 62%;
}

.yc-login-visual-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(95, 102, 255, 0.16);
  border-radius: 999px;
  color: var(--yc-login-primary);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(95, 102, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.yc-login-visual-kicker::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("/themes/clientarea/yangcube/assets_custom/img/login-ui/icons/icon-cloud-data.png") center / contain no-repeat;
}

.yc-login-visual h1 {
  margin-bottom: 16px;
  color: #15213a !important;
  font-size: clamp(32px, 3.1vw, 54px);
  font-weight: 900;
  line-height: 1.12;
  text-shadow: none;
}

.yc-login-visual p {
  max-width: 460px;
  color: #65718a !important;
  font-size: 15px;
  line-height: 1.9;
}

.yc-login-visual-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.yc-login-visual-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(221, 228, 247, 0.86);
  border-radius: 999px;
  color: #38445f;
  background: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 700;
}

.yc-login-visual-points span::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("/themes/clientarea/yangcube/assets_custom/img/login-ui/icons/icon-check-circle.png") center / contain no-repeat;
}

.yc-login-form-col {
  display: flex;
  background:
    linear-gradient(160deg, rgba(248, 250, 255, 0.96), rgba(255, 255, 255, 0.9)),
    url("/themes/clientarea/yangcube/assets_custom/img/login-ui/backgrounds/bg-brand-header-glow.png") center 10% / 90% auto no-repeat;
}

.yc-login-page-content {
  width: 100%;
  min-height: 100%;
  align-items: center;
  justify-content: center;
}

.yc-login-card {
  width: min(520px, 100%) !important;
  margin: 0 auto !important;
  padding: 46px 44px 38px;
  border: 1px solid rgba(220, 228, 248, 0.92);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    url("/themes/clientarea/yangcube/assets_custom/img/login-ui/backgrounds/bg-login-card-glass.png") center / 100% 100% no-repeat;
  box-shadow: 0 24px 68px rgba(54, 63, 116, 0.13);
  backdrop-filter: blur(18px);
}

.yc-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.yc-login-brand-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.yc-login-brand img.cursor {
  max-width: 210px;
  height: auto !important;
  max-height: 54px;
  object-fit: contain;
}

.yc-login-brand-name {
  color: var(--yc-login-ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.yc-login-brand-subtitle {
  color: #8792a8;
  font-size: 13px;
}

.yc-login-card .affs-nav.nav-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  border: 1px solid #e3e9f7;
  border-radius: 16px;
  background: #f5f7ff;
}

.yc-login-card .affs-nav.nav-tabs .nav-item {
  flex: 1 1 0;
}

.yc-login-card .affs-nav.nav-tabs .nav-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  color: #748098;
  font-weight: 800;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.yc-login-card .affs-nav.nav-tabs .nav-link::after {
  display: none;
}

.yc-login-card .affs-nav.nav-tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--yc-login-primary), var(--yc-login-purple));
  box-shadow: 0 12px 26px rgba(95, 102, 255, 0.28);
}

.yc-login-card .tab-content {
  color: var(--yc-login-ink);
}

.yc-login-card .form-group {
  margin-bottom: 18px;
}

.yc-login-card label {
  margin-bottom: 8px;
  color: #34405a;
  font-size: 13px;
  font-weight: 800;
}

.yc-login-card .form-control {
  height: 52px;
  border: 1px solid #dfe6f7;
  border-radius: 14px;
  color: var(--yc-login-ink);
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(26, 35, 68, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.yc-login-card .form-control:focus {
  border-color: rgba(95, 102, 255, 0.72);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(95, 102, 255, 0.12), 0 10px 24px rgba(26, 35, 68, 0.06);
}

.yc-login-card #emailInp,
.yc-login-card #phoneInp,
.yc-login-card #emailPwdInp,
.yc-login-card #phonePwdInp,
.yc-login-card #phoneCodeInp,
.yc-login-card #secondVerifyCode {
  padding-left: 48px;
  background-position: 15px center;
  background-size: 22px 22px;
  background-repeat: no-repeat;
}

.yc-login-card #emailInp {
  background-image: url("/themes/clientarea/yangcube/assets_custom/img/login-ui/icons/icon-mail.png");
}

.yc-login-card #phoneInp {
  background-image: url("/themes/clientarea/yangcube/assets_custom/img/login-ui/icons/icon-phone.png");
}

.yc-login-card #emailPwdInp,
.yc-login-card #phonePwdInp {
  background-image: url("/themes/clientarea/yangcube/assets_custom/img/login-ui/icons/icon-password-lock.png");
}

.yc-login-card #phoneCodeInp,
#secondVerifyModal #secondVerifyCode {
  background-image: url("/themes/clientarea/yangcube/assets_custom/img/login-ui/icons/icon-verification-code.png");
}

.yc-login-card .input-group-prepend {
  width: 112px;
}

.yc-login-card .input-group-prepend .form-control,
.yc-login-card .input-group-append .btn {
  height: 52px;
  border-radius: 14px;
}

.yc-login-card .input-group > .input-group-prepend > .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.yc-login-card .input-group > .form-control:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.yc-login-card .input-group-append .btn {
  min-width: 116px;
  padding: 0 18px;
  border: 0;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--yc-login-primary), var(--yc-login-purple));
}

.yc-login-card .text-primary,
.yc-login-card a.text-primary {
  color: var(--yc-login-primary) !important;
  font-weight: 800;
}

.yc-login-card .btn-primary {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--yc-login-primary), var(--yc-login-purple));
  box-shadow: 0 16px 34px rgba(95, 102, 255, 0.28);
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.yc-login-card .btn-primary:hover,
.yc-login-card .btn-primary:focus {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(95, 102, 255, 0.34);
}

.yc-login-card .mt-5 {
  margin-top: 30px !important;
}

.yc-login-card .mt-5 p {
  margin-bottom: 0;
  color: #7b879d;
  font-size: 14px;
}

.yc-login-card .social-list-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(95, 102, 255, 0.1);
}

.yc-login-card .list-inline-item .icon {
  width: 1.6rem;
  height: 1.6rem;
}

#secondVerifyModal .modal-content {
  border: 1px solid rgba(220, 228, 248, 0.95);
  border-radius: 22px;
  box-shadow: 0 24px 68px rgba(54, 63, 116, 0.16);
}

@media (max-width: 1199.98px) {
  .yc-login-page {
    max-width: 1120px;
  }

  .yc-login-layout {
    min-height: auto;
  }

  .yc-login-visual {
    min-height: 560px;
  }

  .yc-login-card {
    margin: 40px auto !important;
  }
}

@media (max-width: 991.98px) {
  .yc-login-page {
    padding: 0 0 22px;
  }

  .yc-login-visual-col {
    display: none;
  }

  .yc-login-form-col {
    min-height: calc(100vh - 170px);
  }

  .yc-login-page-content {
    padding: 28px 18px !important;
  }
}

@media (max-width: 575.98px) {
  body .main-content .page-content {
    background-attachment: scroll;
  }

  .yc-login-layout {
    border-radius: 22px;
  }

  .yc-login-card {
    padding: 32px 20px 28px;
    border-radius: 22px;
  }

  .yc-login-brand img.cursor {
    max-width: 180px;
  }

  .yc-login-card .input-group-prepend {
    width: 92px;
  }

  .yc-login-card .input-group-append .btn {
    min-width: 96px;
    padding: 0 12px;
  }
}

/* Full-page auth shell: keep the YangCube form logic, but make login match the generated design. */
body.yc-login-shell {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(96, 102, 255, 0.1), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(48, 211, 190, 0.12), transparent 28%),
    #f7f9ff;
}

body.yc-login-shell #page-topbar,
body.yc-login-shell .vertical-menu,
body.yc-login-shell .footer {
  display: none !important;
}

body.yc-login-shell .main-content {
  min-height: 100vh;
  margin-left: 0 !important;
  overflow: visible;
}

body.yc-login-shell .main-content .page-content {
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 255, 0.72)),
    url("/themes/clientarea/yangcube/assets_custom/img/login-ui/backgrounds/bg-login-page.png") center / cover no-repeat fixed;
}

body.yc-login-shell .container-fluid {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

body.yc-login-shell .row {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.yc-login-shell .page-title-box {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1680px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 52px;
  border-bottom: 1px solid rgba(207, 218, 236, 0.72);
}

body.yc-login-shell .page-title-box h4 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #17233d;
  font-size: 18px;
  font-weight: 900;
}

body.yc-login-shell .page-title-box h4::before {
  width: 18px;
  height: 18px;
  content: "";
  background: url("/themes/clientarea/yangcube/assets_custom/img/login-ui/icons/icon-user-center.png") center / contain no-repeat;
}

body.yc-login-shell .page-title-box .page-title-right {
  margin: 0;
}

body.yc-login-shell .breadcrumb {
  margin-bottom: 0;
  background: transparent;
}

body.yc-login-shell .yc-login-page {
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 96px 52px 44px;
}

body.yc-login-shell .yc-login-layout {
  max-width: 1680px;
  min-height: calc(100vh - 140px);
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.yc-login-shell .yc-login-layout::before {
  display: none;
}

body.yc-login-shell .yc-login-visual-col {
  display: flex;
  align-items: stretch;
}

body.yc-login-shell .yc-login-visual {
  width: 100%;
  min-height: calc(100vh - 140px);
  padding: 0 !important;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18)),
    url("/themes/clientarea/yangcube/assets_custom/img/login-ui/backgrounds/bg-illustration-panel.png") center / cover no-repeat;
}

body.yc-login-shell .yc-login-visual .bg-overlay {
  opacity: 1;
  background-position: center;
  background-size: cover !important;
}

body.yc-login-shell .yc-login-visual .bg-overlay::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 46%, rgba(247, 249, 255, 0.54) 100%),
    url("/themes/clientarea/yangcube/assets_custom/img/login-ui/backgrounds/bg-illustration-panel.png") center / cover no-repeat;
  opacity: 0.54;
  mix-blend-mode: normal;
}

body.yc-login-shell .yc-login-visual::before {
  top: 4%;
  right: 2%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(103, 111, 255, 0.14), transparent 70%);
}

body.yc-login-shell .yc-login-visual::after {
  right: -12%;
  bottom: 2%;
  left: auto;
  width: 78%;
  height: 260px;
  opacity: 0.78;
  transform: rotate(-28deg);
}

body.yc-login-shell .yc-login-visual-content {
  display: none !important;
}

body.yc-login-shell .yc-login-form-col {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 140px);
  background: transparent;
}

body.yc-login-shell .yc-login-page-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0 !important;
  padding: 0 34px !important;
}

body.yc-login-shell .yc-login-card {
  width: min(560px, 100%) !important;
  min-height: auto;
  padding: 58px 52px 42px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78)),
    url("/themes/clientarea/yangcube/assets_custom/img/login-ui/backgrounds/bg-login-card-glass.png") center / 100% 100% no-repeat;
  box-shadow: 0 26px 62px rgba(32, 43, 82, 0.16);
}

body.yc-login-shell .yc-login-brand {
  gap: 12px;
  margin-bottom: 34px;
}

.yc-login-brand-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: inherit;
  text-decoration: none !important;
}

body.yc-login-shell .yc-login-brand-mark {
  width: 62px;
  height: 62px;
  filter: drop-shadow(0 14px 22px rgba(94, 105, 255, 0.18));
}

body.yc-login-shell .yc-login-brand-name {
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  background: linear-gradient(135deg, #4a81ff 0%, #6c62ff 50%, #9253e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.yc-login-shell .yc-login-brand-subtitle {
  color: #8390a7;
  font-size: 14px;
  font-weight: 700;
}

body.yc-login-shell .yc-login-card .affs-nav.nav-tabs {
  margin-bottom: 28px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #dfe6f5;
  border-radius: 0;
  background: transparent;
}

body.yc-login-shell .yc-login-card .affs-nav.nav-tabs .nav-link {
  position: relative;
  min-height: 48px;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

body.yc-login-shell .yc-login-card .affs-nav.nav-tabs .nav-link.active {
  color: var(--yc-login-primary);
  background: transparent !important;
}

body.yc-login-shell .yc-login-card .affs-nav.nav-tabs .nav-link.active::after {
  position: absolute;
  right: 22px;
  bottom: -1px;
  left: 22px;
  display: block;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, #4d73ff, #7558f2);
  box-shadow: 0 5px 12px rgba(83, 98, 255, 0.28);
}

body.yc-login-shell .yc-login-card .form-control {
  height: 56px;
  border-radius: 8px;
}

body.yc-login-shell .yc-login-card .input-group-prepend .form-control,
body.yc-login-shell .yc-login-card .input-group-append .btn {
  height: 56px;
  border-radius: 8px;
}

body.yc-login-shell .yc-login-card .btn-primary {
  min-height: 56px;
  border-radius: 8px;
  font-size: 16px;
}

@media (max-width: 1199.98px) {
  body.yc-login-shell .page-title-box {
    padding: 0 28px;
  }

  body.yc-login-shell .yc-login-page {
    padding: 92px 28px 34px;
  }

  body.yc-login-shell .yc-login-visual {
    min-height: 560px;
    border-radius: 24px 24px 0 0;
  }

  body.yc-login-shell .yc-login-form-col,
  body.yc-login-shell .yc-login-page-content {
    min-height: auto;
  }

  body.yc-login-shell .yc-login-card {
    margin: 34px auto !important;
  }
}

@media (max-width: 991.98px) {
  body.yc-login-shell .yc-login-visual-col {
    display: none;
  }

  body.yc-login-shell .yc-login-form-col {
    min-height: calc(100vh - 126px);
  }

  body.yc-login-shell .yc-login-page-content {
    padding: 0 !important;
  }
}

@media (max-width: 575.98px) {
  body.yc-login-shell .page-title-box {
    min-height: 66px;
    padding: 0 18px;
  }

  body.yc-login-shell .page-title-box h4 {
    font-size: 16px;
  }

  body.yc-login-shell .yc-login-page {
    padding: 82px 14px 24px;
  }

  body.yc-login-shell .yc-login-card {
    width: calc(100% - 28px) !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 34px 20px 28px;
  }

  body.yc-login-shell .yc-login-brand-main {
    gap: 10px;
  }

  body.yc-login-shell .yc-login-brand-mark {
    width: 46px;
    height: 46px;
  }

  body.yc-login-shell .yc-login-brand-name {
    font-size: 28px;
  }
}
