:root {
  --ccb-primary: #1f4e79;
  --ccb-primary-dark: #173b5c;
  --ccb-bg: #f4f7fb;
  --ccb-card: #ffffff;
  --ccb-muted: #6c757d;
  --ccb-border: #e6edf5;
  --ccb-success-bg: #eefaf3;
  --ccb-success-border: #cdebd8;
  --ccb-success-text: #1f7a46;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(31, 78, 121, 0.14),
      transparent 34%
    ),
    linear-gradient(135deg, #f4f7fb 0%, #eef3f8 100%);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #1f2937;
}

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-shell {
  width: 100%;
  max-width: 980px;
  background: var(--ccb-card);
  border: 1px solid var(--ccb-border);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.brand-panel {
  background: linear-gradient(
    160deg,
    var(--ccb-primary) 0%,
    var(--ccb-primary-dark) 100%
  );
  color: #fff;
  padding: 48px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.brand-panel::before,
.brand-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-panel::before {
  width: 260px;
  height: 260px;
  right: -80px;
  top: -70px;
}

.brand-panel::after {
  width: 180px;
  height: 180px;
  left: -70px;
  bottom: 70px;
}

.brand-content {
  position: relative;
  z-index: 1;
}

.brand-logo {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
}

.system-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.instruction-list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.instruction-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.auth-panel {
  padding: 48px;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.auth-card-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.mobile-logo {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: var(--ccb-primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.form-control,
.input-group-text {
  border-color: var(--ccb-border);
  background-color: #fff;
}

.form-control {
  min-height: 50px;
  border-radius: 14px;
}

.input-group .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group-text {
  border-radius: 14px 0 0 14px;
  color: var(--ccb-muted);
  min-width: 50px;
  justify-content: center;
}

.form-control:focus {
  border-color: var(--ccb-primary);
  box-shadow: 0 0 0 0.22rem rgba(31, 78, 121, 0.12);
}

.btn-primary {
  --bs-btn-bg: var(--ccb-primary);
  --bs-btn-border-color: var(--ccb-primary);
  --bs-btn-hover-bg: var(--ccb-primary-dark);
  --bs-btn-hover-border-color: var(--ccb-primary-dark);
  min-height: 50px;
  border-radius: 16px;
  font-weight: 600;
}

.btn-light-soft {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--ccb-border);
  background: #fff;
  color: #374151;
  font-weight: 600;
}

.btn-light-soft:hover {
  border-color: #d4deea;
  background: #f8fafc;
}

.small-link {
  color: var(--ccb-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.small-link:hover {
  color: var(--ccb-primary-dark);
  text-decoration: underline;
}

.security-box {
  border: 1px solid var(--ccb-border);
  background: #f8fafc;
  border-radius: 18px;
  padding: 16px;
  color: var(--ccb-muted);
  font-size: 0.9rem;
}

.success-box {
  border: 1px solid var(--ccb-success-border);
  background: var(--ccb-success-bg);
  color: var(--ccb-success-text);
  border-radius: 18px;
  padding: 18px;
}

.status-line {
  border-top: 1px solid var(--ccb-border);
  margin-top: 28px;
  padding-top: 18px;
  color: var(--ccb-muted);
  font-size: 0.86rem;
}

@media (max-width: 991.98px) {
  .brand-panel {
    display: none;
  }

  .auth-shell {
    max-width: 520px;
    border-radius: 24px;
  }

  .auth-panel {
    min-height: auto;
    padding: 34px 26px;
  }

  .mobile-logo {
    display: flex;
  }
}

@media (max-width: 420px) {
  .auth-wrapper {
    padding: 12px;
  }

  .auth-panel {
    padding: 28px 20px;
  }

  .auth-shell {
    border-radius: 22px;
  }
}
